Add functionality to display a chess board and pieces
Adds new Java files for Chess game logic, piece representation, and display initialization, along with imports for GUI and event handling. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f6819c21-e85d-45ac-acde-604db2cfa4fe Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: b3669ecc-6df5-4941-bb0c-6a0ed9bbd81e Replit-Helium-Checkpoint-Created: true
This commit is contained in:
10
Chess/Pawn.java
Normal file
10
Chess/Pawn.java
Normal file
@@ -0,0 +1,10 @@
|
||||
import java.awt.*;
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
public class Pawn extends Piece{
|
||||
|
||||
|
||||
public Pawn(int x, int y,String color){
|
||||
super(x,y,new ImageIcon("Sprites/" + color + "/Pawn.png").getImage());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user