getPiece method
Get the piece at the specified position.
Implementation
ChessPiece? getPiece(Position position) {
return board[position.row][position.col];
}
Get the piece at the specified position.
ChessPiece? getPiece(Position position) {
return board[position.row][position.col];
}