This document is a work in progress and will be updated as more questions are asked by students this quarter.
CollectNewspaper
, so I renamed it to my own name such as DaveIsGreat
.
That is okay, right?
int
variable like we learned about in class in Week 2.
I counted the size of the world and then walked Karel half of that distance.
That's okay, right?
run
method.
For example, the following loop walks Karel from (1,1) all the way to the right edge, but when he gets there, the loop doesn't stop:
while (leftIsClear()) { if (frontIsClear()) { move(); } }
run
method?