Learning Java with Karel the Robot
Loading...
9,224
Loading...
Uploader Comments (AVANROTCIV)
see all
All Comments (41)
-
@606huyen606 Its better not to use any ints in this program. Just do if and while statements, and logically solve them in your head before typing out random code :D
-
i'm stuck with checker board and wonder which method to use. Also when i use method for(int i=0;i<4;i++){putBeeper();move(
);if(frontIsBlocked()){turnLef t();}if(frontIsClear()){move() ;}}}} it works for the world 8x8 but in 6x5 my Karel went up 2 steps. Just wonder that u can help me -
I am a high school student doing CS106A Stanford University. And I am stuck on Karel trying to get the checkerboard and I can't get it to do it properly. Could you tell me the method you used?
Thanks
-
Whats your algorithm? I can't figure out the checker board one....
Loading...
Frietjestoof 5 months ago
@Frietjestoof can't use variables
AVANROTCIV 5 months ago
I just finished solving all the assignments, so I decided I'd go on youtube and checkout how other people solved the problems. It's good to see that you solved them, but they seem kind of unorganized. I'm not sure how you did the midpoint and checkerboard problems! Your Karel seems to take the long route on things :P. Interesting nonetheless!
GioV45 6 months ago
@GioV45 I did it so it works without having to go up and down
AVANROTCIV 5 months ago
@AVANROTCIV Oh, well my Karel simply fills the first row with beepers then picks ups up the beepers at each end until he picks up the last beeper, moves one space forward, one space back, and then places a beeper down again
GioV45 4 months ago
@GioV45 that's definitely faster!
AVANROTCIV 4 months ago