Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created April 28, 2020 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/b27dde9427a110557b0aad7af38be7c8 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/b27dde9427a110557b0aad7af38be7c8 to your computer and use it in GitHub Desktop.
elif anweisung in richtungen:
neuerOrt = False
for i in range(4):
if anweisung == richtungen[i] and orte[self.__Position].getAusgang()[i] >= 0:
print("\nDu suchst einen neuen Ort auf.")
self.__Position = orte[self.__Position].getAusgang()[i]
neuerOrt = True
if neuerOrt:
break
print("\nIn diese Richtung kannst du nicht gehen.\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment