pieceAt now return correctly
This commit is contained in:
parent
c6b1cde768
commit
1ba7f9c24f
@ -31,7 +31,7 @@ class Board {
|
||||
}
|
||||
}
|
||||
|
||||
Piece pieceAt(int col, int row) {
|
||||
Piece pieceAt(int row, int col) {
|
||||
for (Piece p : Pieces)
|
||||
if (p.row == row && p.col == col)
|
||||
return p;
|
||||
|
Loading…
Reference in New Issue
Block a user