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.

double_it.py 556B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. def turn_around():
  2. turn_left()
  3. turn_left()
  4. def turn_right():
  5. turn_left()
  6. turn_left()
  7. turn_left()
  8. def double_star():
  9. take()
  10. move()
  11. put()
  12. put()
  13. turn_around()
  14. move()
  15. turn_around()
  16. def double_all_stars():
  17. while object_here():
  18. double_star()
  19. def move_star():
  20. take()
  21. move()
  22. put()
  23. turn_around()
  24. move()
  25. turn_around()
  26. def move_all_stars():
  27. while object_here():
  28. move_star()
  29. move()
  30. double_all_stars()
  31. move()
  32. turn_around()
  33. move_all_stars()
  34. move()
  35. move()