Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Mazes
- {
- public static class EmptyMazeTask
- {
- public static void MoveOut(Robot robot, int width, int height)
- {
- Move(robot, height, Direction.Down);
- Move(robot, width, Direction.Right);
- }
- public static void Move(Robot robot, int distance, Direction direction)
- {
- for (int i = 1; i < distance - 2; i++)
- robot.MoveTo(direction);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement