Members
(static, constant) createLangtonsAnt
- Description:
- Initializes a Langton's Ant automaton on a given grid. The ant follows standard rules: turns right on 0, turns left on 1, and flips the cell state.
- Source:
- See:
Initializes a Langton's Ant automaton on a given grid.
The ant follows standard rules: turns right on 0, turns left on 1, and flips the cell state.
(static, constant) createUnlimitedGrid
- Description:
- Creates an unlimited, dynamically expanding 2D grid using nested Maps. Ideal for sparse matrices or algorithms operating on an infinite plane (e.g., Langton's Ant, Game of Life).
- Source:
- See:
Creates an unlimited, dynamically expanding 2D grid using nested Maps.
Ideal for sparse matrices or algorithms operating on an infinite plane (e.g., Langton's Ant, Game of Life).