Logic to select the next cell based on a list of neighbours.
These functions are pure functions and have no internal state.
Optional
Readonly
Returns neighbours for a given cell in a grid
Select a neighbour from given list
Logic to select the next cell based on a list of neighbours.
These functions are pure functions and have no internal state.