Forums Register Login

stuck on a problem

+Pie Number of slices to send: Send
Hey guys, I have decided to learn Java on my own so I have been watching Stanford cs lectures and trying to do their problem sets.

I'm stuck on problem 3 problem set

I have been following this hand out. You can just look at the last page and see what SuperKarel is capable of.

So far this is all I have:



the code works fine but I got this error http://i49.tinypic.com/np4zsh.png

Any code that I write after the while loop didn't get processed?

1
+Pie Number of slices to send: Send
What 'error' were you referring to?

The yellow warnings (which in this case is about ~serializable) is just a warning. It didnt have any effect whatsoever in your java compilation nor the execution of your program.

It does look like the codes after the while is executed. That is why you get that '...blocked' red pop up. That is part of that 'game' design.

-k

+Pie Number of slices to send: Send
Thanks for the reply.

Oh nvm the error.

If the codes after the while are executed, wouldn't the robot's position be at (8,2) instead of (8,1)?
Evil is afoot. But this tiny ad is just an ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 759 times.
Similar Threads
Help with Assignment for Stanford's CS106A Course
CS106A Aerobic Exercise
Total newbie and I am lost so far.
CS106A Pawprint exercise
the dreaded CS106a pyramid. Solved but needs improvement
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:51:06.