These non-mutative methods provide detailed information about a given quadrille:
- search(pattern, strict): Searches for cells that match a specific quadrille
pattern, with an optionalstrictmode for exact matches of cell values. - magnitude(row): Calculates the number of non-empty cells in the specified
row. - reach(row, col, directions): Returns the seed cell’s reach as a number-field quadrille —
0at the seed, steps-to-reach elsewhere, empty where out of reach; filled cells are obstacles. - path(row1, col1, row2, col2, directions): Returns a shortest path between two cells as an array of
{row, col}steps — empty on failure, uniformly. - screenRow(pixelY, y, cellLength): Computes the
rowindex from a vertical pixel position. Rarely used—consider using the mouseRow property instead for simplicity. - screenCol(pixelX, x, cellLength): Computes the
colindex from a horizontal pixel position. Rarely used—consider using the mouseCol property instead for simplicity.