This site requires JavaScript, please enable it in your browser!
Greenfoot back
hessajm
hessajm wrote ...

2013/3/13

System.out.printIn()

hessajm hessajm

2013/3/13

#
I have a camel class and I need it to do the following without using the move method: i need the camel to navigate the world in order to detect 6 random placed bombs in the world and recored them using an array and after that print in the location in the form (x,y) Help please
danpost danpost

2013/3/13

#
What part are you having problems with? and what code have you tried?
hessajm hessajm

2013/3/15

#
I've used the " setLocation( getX()+1, getY() ); setLocation( getX(), getY()+1 );" to move the camel in the world 1 step in the Y axis and 1 point in the x axis, but the prof included a picture in the assingment saying that the bomb should be disbarred when the camel navigate them! I am not sure how to do that
danpost danpost

2013/3/15

#
Are you trying to say that the bomb should explode if the camel moves onto ( or over) one, and you are trying do avoid doing that?
You need to login to post a reply.