Class Direction
In: karel/direction.rb
Parent: Object

Direction in the robot world (North, West, South, East) This is an abstract class

Methods

new   next   next_avenue   next_street   to_s  

Public Class methods

Create a direction and name it

Public Instance methods

the next direction counter-clockwise from self

The next avenue in the direction faced (if facing East or West) The avenue the robot will be on if it moves in this direction

The next street in the direction faced (if facing North or South) The street the robot will be on if it moves in this direction

[Validate]