Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //http://stanfordkarel.com/lessons.html#/english/unit9/lesson2
- //Partial solution
- //Karel must help rebuild
- //broken columns. Make a
- //column of beepers above
- //each beeper you find on
- //the first row
- function main() {
- while(frontIsClear()){
- move();
- if (beepersPresent())
- {
- turnLeft();
- move();
- while (noBeepersPresent())
- {
- putBeeper();
- move();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement