Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created April 28, 2020 07:00
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/61ef78c55a5d7121f665bb11cfdcf452 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/61ef78c55a5d7121f665bb11cfdcf452 to your computer and use it in GitHub Desktop.
if bedingung1 and (bedingung2 or bedingung3):
if orte[self.__Position].getGegenstand() not in self.__Ausstattung:
if orte[self.__Position].getNotwendig() in self.__Ausstattung or orte[self.__Position].getNotwendig() == "":
self.__Ausstattung += [orte[self.__Position].getGegenstand()]
if self.__Position == 6:
self.__Position = -1
if self.__Ziel == "Prinzessin":
print("\nDu hast das Herz der Prinzessin gewonnen.")
else:
print("Du hast das Herz des Prinzen gewonnen.")
print("Vielen Dank, dass du unser Spiel gespielt hast.")
break
else:
print("\nHerzlichen Glückwunsch!")
print("Du hast folgenden Gegenstand gewonnen: {} \n".format(orte[self.__Position].getGegenstand()))
else:
print("\nDu kannst diese Aktion nicht durchführen.")
print("Du benötigst: {}".format(orte[self.__Position].getNotwendig()))
else:
print("\nDu hast diesen Gegenstand schon.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment