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

Represents the East direction. Knows how to calculate the next counter-clockwise direction and how to compute the next street and avenue in this direction. It defines a singleton via the instance method.

Methods

instance   new   next_avenue  

Public Class methods

Create the East direction

Public Instance methods

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

[Validate]