Expand description
Modules§
- implementations
- Implementations
Structs§
- Context
- A context given to the
Algorithm
on everyprogress
call, provide informations about the maze and method to create aGuess
. - Executor
- A structure holding a
Maze
and iteratively solving it with a providedAlgorithm
. - Guess
- A guess to pass to the current
Executor
at the end of everyprogress
call. - Insight
- An insight given to the
Algorithm
on everyprogress
call. On the first time about the starting point and every consecutive call about the tail of the previous guess. - Maze
- Data structure representing a maze on a grid.
stores each possible paths as a
HashMap
mapping each positions to the accessible adjascent ones. - Pos
- A discrete position on a 2D-grid.
- Simple
Generator - Most common maze generation technique, recursively creating paths to unvisited cells, each time choosing next direction at random.
Traits§
- Algorithm
- Trait encapsulating the behavior of an algorithm solving mazes.
Implementing this trait is done by providing a
progress
method which gets called iteratively on each steps of a [Maze
] resolution. - Maze
Generator - Trait encapsulating the behavior of a type capable to create mazes.