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.

adventure.py 359B

1234567891011121314
  1. from library import turn_right
  2. while wall_on_right():
  3. move()
  4. turn_left()
  5. turn_left()
  6. move()
  7. ################################################################
  8. # WARNING: Do not change this comment.
  9. # Library Code is below.
  10. ################################################################
  11. def turn_right():
  12. for _ in range(3):
  13. turn_left()