Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
toy_robot_crystal
main
ToyRobot
CLI
Command
Base
Move
Place
Report
Rotate
RotateDirection
Commander
NotPlaced
OutsideOfTable
Robot
Direction
Table
UnrecognisedCommand
WrongDirection
Built with Crystal 1.9.2
2023-10-07 17:30:58 UTC
enum
ToyRobot::Robot::Direction
Defined in:
toy_robot/robot.cr
Enum Members
NORTH
=
0
EAST
=
1
SOUTH
=
2
WEST
=
3
Instance Method Summary
#east?
#north?
#south?
#west?
Instance Method Detail
def
east?
#
[
View source
]
def
north?
#
[
View source
]
def
south?
#
[
View source
]
def
west?
#
[
View source
]