"import becker.robots*;
public class GoRoundSquare
{
public static void main(String[] args)
{
// Set up the initial situation
City ny = new City();
Robot karel = new Robot(ny, 0, 2, Direction.WEST);
Wall w1 = new Wall(ny, 1, 1, Direction.WEST);
Wall w2 = new Wall(ny, 2, 1, Direction.WEST);
Wall w3 = new Wall(ny, 2, 1, Direction.SOUTH);
Wall w4 = new Wall(ny, 2, 2, Direction.SOUTH);
Wall w5 = new Wall(ny, 2, 2, Direction.EAST);
Wall w6 = new Wall(ny, 1, 2, Direction.EAST);
Wall w7 = new Wall(ny, 1, 2, Direction.NORTH);
Wall w8 = new Wall(ny, 1, 1, Direction.NORTH);
// Direct the robot to the final situation
karel.move();
karel.move();
karel.turnLeft();
karel.move();
karel.move();
karel.move();
}
}"
that's the exact code im using there and the problem is on line 1 with that error message
No comments:
Post a Comment