premiere partie terminee (lab1)

This commit is contained in:
Admin 2025-04-10 11:48:53 +02:00
parent 141b873290
commit de21dc85fa
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ public class Board {
PieceType king = PieceType.King;
//all the pawns
for (int x=0; x<7; x++) {
for (int x=0; x<8; x++) {
pieces.add(new Piece(x, 1, pawn, false));
pieces.add(new Piece(x, 6, pawn, true));
}

View File

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