예제 #1
0
 public void CheckWalls()
 {
     this.IsLeftWall  = robot.IsLeftWall();
     this.IsAboveWall = robot.IsAboveWall();
     this.IsRightWall = robot.IsRightWall();
     this.IsBelowWall = robot.IsBelowWall();
 }
예제 #2
0
        public void Program(ILevelInfo robot)
        {
            while (!robot.IsBelowWall())
            {
                robot.GoDown();
            }

            while (!robot.IsRightWall())
            {
                robot.GoRight();
            }
        }