reAdded Piece construct

This commit is contained in:
Jérôme BEDIER 2025-05-06 14:48:34 +02:00
parent 7fe1787a35
commit ae199f8d2a
1 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,13 @@ public class Piece {
int x; int x;
int y; int y;
private PieceType type; private PieceType type;
public Piece(boolean whitePiece, PieceType type, int x, int y) {
this.whitePiece = whitePiece;
this.type = type;
this.x = x;
this.y = y;
}
public int getX() { public int getX() {
return x; return x;
} }