checkPosition

fun checkPosition(coordinate: Coordinate)

Checks if the specified row and column are within the bounds of the board.

Throws

if the row or column are out of bounds.