Getting used to Parson's Problems: Running To A Wall

DIRECTIONS:

Construct a working program by dragging & dropping lines from the left to the right. You'll need to change the order of the lines and you'll need to adjust the indentation correctly.

The code should first create a City, then a Robot, then a Thing. Once that's done you should have the robot move forwards until it reaches the wall that's blocking it. Once it reaches the wall it should turn left, move forwards one space, and then stop

import becker.robots.*;

public class ICE_05_Demo_Run_To_Wall extends Object
{
    public static void main(String[] args)
    {
	City wallville = new City(6, 12);
	Robot rover = new Robot(wallville, 4, 0, Direction.EAST, 0);
	new Wall(wallville, 4, 10, Direction.EAST);
	
      // FIX THIS PART!!!
    }
}

}

Check your work by clicking on the button labeled "Get Feedback" at the bottom of this page.