Expand description
Grid helpers.
Functions§
- for_
each_ row - Iterate over each row of a 2D grid and pass it to a callback after validation.
- is_
enclosed - Checks that the provided grid has walls on each edge.
- parse
- Parse a 2D grid.
- parse_
maze - Parse a “standard” maze with open tiles
., walls#and one startSand one endE.
Type Aliases§
- Grid
- A parsed grid:
(number of rows, number of columns, data).