This commit is contained in:
Cool Guy
2026-04-20 23:22:10 +00:00
parent a97e122e58
commit 018b24bf71
92 changed files with 0 additions and 1286 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);
}
}