public void setup()
 {
     rover = Instance.Create<Rover>();
     coordinates = new Coordinates { point_x = 3, point_y = 2 };
     plateau = new Plateau { coordinates = new Coordinates { point_x = 5, point_y = 5 } };
     direction = 'n';
 }
 public void setup()
 {
     rover = Instance.Create<Rover>();
     plateau = new Plateau { coordinates = new Coordinates { point_x = 5, point_y = 5 } };
     coordinates = new Coordinates { point_x = 1, point_y = 2 };
     direction = 'n';
     instructions = "LMLMLMLMM";
     result = rover.deploy().at(coordinates).@in(plateau).facing_towards(direction).move_using(instructions);
 }
Exemplo n.º 3
0
 public void navigate_rover(Coordinates coordinates, Plateau plateau, char direction, string instructions)
 {
     try
     {
         var rover = Instance.Create<Rover>();
         rover.deploy().at(coordinates).@in(plateau).facing_towards(direction).move_using(instructions);
         show_current_coordinates(rover, default_console);
     }
     catch (Exception ex)
     {
         default_console.WriteLine(ex.Message);
     }
 }
 public void should_be_able_to_deploy_rover_at_given_coordinates_in_plateau()
 {
     plateau = new Plateau{ coordinates = new Coordinates{ point_x = 2, point_y = 2}};
     rover.deploy().at(coordinates).@in(plateau);
 }