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.

ℹ️
To check bounds individually, you can call quadrille.isValid(row, 0) to test only if row is within bounds, or quadrille.isValid(0, col) to test only if col is within bounds.

Syntax

isValid(row, col)

Parameters

ParamDescription
rowNumber: row index of the cell to be checked
colNumber: column index of the cell to be checked