pieceAt now return correctly

This commit is contained in:
Johannes Schmelz 2025-04-14 23:05:01 +02:00
parent c6b1cde768
commit 1ba7f9c24f

View File

@ -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;