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