An enumerated type
Direction whose elements are the four cardinal directions:
Direction knows what
Direction is to the left, the right, or opposite itself
using the methods
direction = Direction.NORTH
direction.left() # => Direction.WEST
direction.right() # => Direction.EAST
direction.opposite() # => Direction.SOUTH
Represent the four compass directions.
EAST = 1
NORTH = 0
SOUTH = 2
WEST = 3
Return the direction to the left.
Return the opposite direction.
Return the direction to the right.