piece fini et board avance

This commit is contained in:
Admin 2025-04-10 10:44:54 +02:00
parent e06be13a00
commit df2b6c1f48
2 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,8 @@ public class Board {
}
public void setPiece(boolean isWhite, PieceType type, int x, int y) {
//TODO
Piece newPiece = new Piece( x, y, type,isWhite);
pieces.add(newPiece);
}
public void populateBoard() {

View File

@ -10,7 +10,7 @@ public class Piece {
this.x = x;
this.y = y;
this.type = type;
this.isWhite = isWhite; // true if the piece is white, false if black
this.isWhite = true; // true if the piece is white, false if black
}
public int getX() {