formatting and compiling

This commit is contained in:
Cool Guy
2026-04-21 16:20:03 +00:00
parent 76c4dea36a
commit 94e4377364
7 changed files with 103 additions and 106 deletions

View File

@@ -1,18 +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);
}
}
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);
}
}