added temp sprites and filled board

This commit is contained in:
CT
2026-05-07 19:02:31 -05:00
parent f6aaa63a5f
commit a70b84f991
13 changed files with 13 additions and 3 deletions

View File

@@ -7,10 +7,19 @@ public class Board {
board = new Piece[8][8];
for (int i = 0; i <= 7; i++) {
board[i][1] = new Pawn(i, 1, "Black");
}
for (int i = 0; i <= 7; i++) {
board[i][6] = new Pawn(i, 6, "White");
}
for (int i = 0; i <= 7; i += 7) {
String color = i == 0 ? "Black" : "White";
board[0][i] = new Rook(0, i, color);
board[7][i] = new Rook(7, i, color);
board[1][i] = new Knight(1, i, color);
board[6][i] = new Knight(6, i, color);
board[2][i] = new Bishop(2, i, color);
board[5][i] = new Bishop(5, i, color);
board[4][i] = new King(4, i, color);
board[3][i] = new Queen(3, i, color);
}
}
public Board(boolean isCopy) {