Advertisement
nikita_yashin

EmptyMaze v2.0

Oct 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. namespace Mazes
  2. {
  3. public static class EmptyMazeTask
  4. {
  5. public static void MoveOut(Robot robot, int width, int height)
  6. {
  7. Move(robot, height, Direction.Down);
  8. Move(robot, width, Direction.Right);
  9. }
  10.  
  11. public static void Move(Robot robot, int distance, Direction direction)
  12. {
  13. for (int i = 1; i < distance - 2; i++)
  14. robot.MoveTo(direction);
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement