MazeGenerator.VisitTracker (maze_generator v0.1.0) View Source

Tracks whether a given coordinate has been visited or not.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Gets the value of a given coordinate.

Sets a given coordinate as visited. Default value is true but can be alternative value depending upon the algorithm needs.

Starts an agent to track visited cells.

Stops the agent.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_visited(agent, coordinates)

View Source

Gets the value of a given coordinate.

Link to this function

set_visited(agent, coordinates, value \\ true)

View Source

Sets a given coordinate as visited. Default value is true but can be alternative value depending upon the algorithm needs.

Starts an agent to track visited cells.

Stops the agent.