Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
type Cell struct { NorthRoute bool `json:"northRoute"` WestRoute bool `json:"westRoute"` Visited bool `json:"-"` }
cell is an individual part of a maze with a route north, west, and a visited flag a "route" north, representing lack of a wall, is used instead of a wall=true as the default type for a bool is false so by default there is no route from that cell. This saves constructing cells with true values.
Click to show internal directories.
Click to hide internal directories.