argh!!! i jus dont have a clue as to what the heck im meant to be doing.
hears the deal, im meant to place another robot onto the maze thats allready there, and then guide him to the center. but i jus dont know where to start, heres what i was given:
public class MazeRunner{
/**
* Constructor for objects of class MazeRunner
*/
public MazeRunner(RobotWorld world){
//create a new robot and add to the world
Robot marvin = new Robot(1,1,1);
world.addItem(marvin);
//add code here to get robot to meet the robot at the centre of the maze
//by using loops and the methods provided by the robot class
//for example
marvin.move();
System.out.println(marvin);
}//end constructor
}//end class
AND
public class MazeLauncher {
/**
* Application entry point, use to
test main method
*/
public static void main(
String[] args) {
//DO NOT EDIT THIS CLASS, just use to test main method
RobotWorld world = RobotWorld.getDefaultRobotWorld();
world.resizeWorld(20, 15, 33);
world.clearWorld();
Maze m = new Maze(world);
//pause
System.out.println("Press enter to let your robot find its way to the other robot in the centre");
UserInput.readString();
MazeRunner mr = new MazeRunner(world);
//pause
System.out.println("Press enter to finish");
UserInput.readString();
System.exit(0);
}//end main
}//end class
now im not at all asking anyone to complete this for me, i just would like to understand how im meant to place the robot, and get him to move???
please help me, this is really getting to me BoB