package
Version:
v0.0.0-...-60c38a5
Opens a new window with list of versions in this module.
Published: Jun 27, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package robot provides a Robot that can travel through a maze and record its steps
Robot records its steps as it roams though a maze
Finished returns true or false if the robot is done going through the maze
Move moves the robot in its current direction. Returns an error if impossible to move.
Steps returns a copy of the robot's steps
func (r *Robot) TurnLeft()
TurnLeft turns the Robot left
func (r *Robot) TurnRight()
TurnRight turns the Robot right
Step represents a movement in a maze, it has a target cell and direction
Source Files
¶
Click to show internal directories.
Click to hide internal directories.