atSquare method

Piece? atSquare(
  1. Square square
)

Returns piece on square or null if square is empty.

Implementation

Piece? atSquare(Square square) => at(square.row, square.col);