diff --git a/OOP_1A2_Project/src/backend/Board.java b/OOP_1A2_Project/src/backend/Board.java index c304ac0..78bc856 100644 --- a/OOP_1A2_Project/src/backend/Board.java +++ b/OOP_1A2_Project/src/backend/Board.java @@ -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)); } diff --git a/OOP_1A2_Project/src/backend/Piece.java b/OOP_1A2_Project/src/backend/Piece.java index 67a2c62..ea076d4 100644 --- a/OOP_1A2_Project/src/backend/Piece.java +++ b/OOP_1A2_Project/src/backend/Piece.java @@ -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() {