Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This program has karel walk down the
- // row and clean up all of the tennis balls
- // on the way.
- function start(){
- while(frontIsClear()){
- if(ballsPresent()){
- takeBall();
- }
- move();
- }
- if(ballsPresent()){
- takeBall();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement