Beispiele und Musterlösungen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bob.py 388B

1234567891011121314151617181920212223242526
  1. def repair_stone():
  2. if object_here():
  3. pass
  4. else:
  5. put()
  6. def repair_pillar():
  7. turn_left()
  8. while front_is_clear():
  9. repair_stone()
  10. move()
  11. repair_stone()
  12. turn_left()
  13. turn_left()
  14. while front_is_clear():
  15. move()
  16. turn_left()
  17. move()
  18. think(0)
  19. for _ in range(3):
  20. move()
  21. move()
  22. repair_pillar()