Good evening ladies and gents!
I've got a question for you folks fluent with the Becker library.
goToStreet(int street) : boolean (2 marks) Move to a particular street - Moves the robot to a particular street along the current avenue. Returns true on success, false if there is a wall blocking the path, in which case the robot stops at the wall.
The above is the question i must find an answer to, not you. I just need guidance.
How can i make my robot move to a location(set by me) by simply telling it the coordinates??
You see, what i have done thus far is create method such as:
public static void turnRight(Robot r){
for (int i = 0;i < 3; i++) {
r.turnLeft();
and public static void movePlaces(Robot r, int Places ) {
for ( int i = 0; i < Places; i ++){
r.move();
These methods, in my opinion are very simple, however im not sure how to give my robot coordinates for it to follow.
The whole boolean part of the question is not necessary for you answer but explain to best of your knowledge.
I've contacted my professor already about this question and im currently waiting on a reply, but i wanted to get some input from this community.
A quick reference link, tips, points, anything but the answer would be greatly appreciated.
Thanks in advance,
-JC