示例#1
0
 /// <summary>
 /// Turn right
 /// </summary>
 public void TurnRight()
 {
     this.CurrentPosition.Direction = RoverAction.TurnRight(this.CurrentPosition.Direction);
 }
示例#2
0
 /// <summary>
 /// Move
 /// </summary>
 public void Move()
 {
     CheckRoverIsAtValidGridBoundaries();
     this.CurrentPosition = RoverAction.Move(this.CurrentPosition);
 }