cellAt method
The cell at (x,y), or Cell.blank when out of bounds.
Implementation
Cell cellAt(int x, int y) {
if (x < 0 || x >= width || y < 0 || y >= height) return Cell.blank;
return _cells[_index(x, y)];
}
The cell at (x,y), or Cell.blank when out of bounds.
Cell cellAt(int x, int y) {
if (x < 0 || x >= width || y < 0 || y >= height) return Cell.blank;
return _cells[_index(x, y)];
}