public void CheckWalls() { this.IsLeftWall = robot.IsLeftWall(); this.IsAboveWall = robot.IsAboveWall(); this.IsRightWall = robot.IsRightWall(); this.IsBelowWall = robot.IsBelowWall(); }
public void Program(ILevelInfo robot) { while (!robot.IsBelowWall()) { robot.GoDown(); } while (!robot.IsRightWall()) { robot.GoRight(); } }