예제 #1
0
 public void TurnLeft()
 {
     this.RoverState = this.RoverState.TurnLeft();
 }
예제 #2
0
 public void TurnRight()
 {
     this.RoverState = this.RoverState.TurnRight();
 }
예제 #3
0
 public Rover(Point coordinates, string direction)
 {
     this.RoverState = DirectionStateFactory.Create(coordinates, direction);
 }