To get ready: solve each of these 3 problems separately:
Here is some code that should work to place the Jeroos in any of the Rooms islands. Change the directions they are facing and also try starting them in a corner or on a wall to fully test your program.
method main(){
Jeroo a = new Jeroo(8,5,SOUTH,1);
Jeroo b = new Jeroo(14,9,EAST,1);
Jeroo c = new Jeroo(6,18,NORTH,1);
Jeroo d = new Jeroo(22,15,WEST,1); // won't work in Rooms 4 move to (1,9)
}
|
Then, try the full Clear the Rooms program