isValid(row, col)
Checks if the specified cell coordinates (row, col) lie within quadrille bounds, i.e., returns true if row ∈ [0..height] and col ∈ [0..width], and false otherwise. The bounds guard to lead with before any cell test — see the out-of-bounds note in isEmpty.
Note
To check bounds individually, you can call
quadrille.isValid(row, 0)to test only ifrowis within bounds, orquadrille.isValid(0, col)to test only ifcolis within bounds.
Syntax
isValid(row, col)
Parameters
| Param | Description |
|---|---|
row |
Number: row index of the cell to be checked |
col |
Number: column index of the cell to be checked |