Initial commit

This commit is contained in:
CT
2026-04-20 20:32:23 +00:00
commit a836469b89
4 changed files with 124 additions and 0 deletions

18
Piece.java Normal file
View File

@@ -0,0 +1,18 @@
import java.awt.*;
import java.util.*;
public class Piece{
ArrayList<Integer> legalMoves;
int x,y;
Image sprite;
public Piece(int x, int y, Image sprite){
this.x = x;
this.y = y;
this.sprite = sprite;
}
public void draw(Graphics g){
g.drawImage(sprite,x * 40,y * 40,null);
}
}