February 7th, 2013, 10:19 AM
thank you! i was able to figure it out... the errror was with the forward move blocked and a little with move and hall is clear. Anyways here is the code:
public class Robot
{
private int[]...
February 6th, 2013, 04:43 PM
Here's to make the code a bit easier to read..... i'll take out the unnessessary stuff
public class Robot
{
private int[] hall;
private int pos; //current position (tile number) of Robot...
February 6th, 2013, 04:27 PM
also, we need to show how the toString works... so thats why there is so many robots. im just focusing on botOne
February 6th, 2013, 04:25 PM
hi! in the main method, im starting at index one of the array(i made a mistake in the botOne creation). because the robot goes toward the right, there is still one more toy that needs to be picked...
February 4th, 2013, 04:48 PM
hi! how do you make an object go backwards through an array? my class is doing an ap question called robot clears the hall. everything is working except for the fact that the object doesn't turn...