isValid

fun isValid(boardSide: Int): Boolean

Checks if the coordinate is valid for the given board size.

Return

True if the coordinate is within the bounds of the board.

Parameters

boardSide

The size of the board (number of rows/columns).