Beispiel #1
0
 public Rover()
 {
     CurrentPosition = new RoverPosition()
     {
         Direction = CardinalDirection.North
     };
 }
Beispiel #2
0
 public static Coordinates Move(int command, RoverPosition currentPosition)
 {
     return(MoveFunctions[currentPosition.Direction](currentPosition.Coordinates, Convert.ToInt32(command)));
 }
Beispiel #3
0
 public Rover(RoverPosition startingPosition)
 {
     CurrentPosition = startingPosition;
 }