Esempio n. 1
0
 public static void ShiftIfWidthMoreHeight(Robot robot, int width, int height, int rightshift, int downshift)
 {
     for (int i = 0; i < height - 3; i++)
     {
         EmptyMazeTask.MoveRightOnCount(robot, rightshift);
         EmptyMazeTask.MoveDownOnCount(robot, downshift);
     }
     EmptyMazeTask.MoveRightOnCount(robot, rightshift);
 }
Esempio n. 2
0
        public static void MoveOut(Robot robot, int width, int height)
        {
            int i = 1;

            while (i < height - 2)
            {
                RightDownLeftStep(robot, width);
                i += 2;
                if (i != height - 2)
                {
                    EmptyMazeTask.MoveDownOnCount(robot, 2);
                    i += 2;
                }
            }
        }
Esempio n. 3
0
 public static void RightDownLeftStep(Robot robot, int width)
 {
     EmptyMazeTask.MoveRightOnCount(robot, width - 3);
     EmptyMazeTask.MoveDownOnCount(robot, 2);
     MoveLeftOnCount(robot, width - 3);
 }