Created
March 17, 2023 19:06
-
-
Save samuelpath/a864f5a66c4ab75d4f994ebea891c1bf to your computer and use it in GitHub Desktop.
le château du dragon affamé.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Tu te trouves dans une pièce obscure d'un mystérieux château.") | |
print("Tu dois choisir entre trois portes.") | |
choixJoueur = input("Choisis 1, 2 ou 3...") | |
if choixJoueur == "1": | |
print("Tu as trouvé un trésor. Tu es riche !") | |
print("Bravo, TU AS GAGNÉ !") | |
elif choixJoueur == "2": | |
print("La porte s'ouvre et un ogre affamé te donne un coup de massue.") | |
print("GAME OVER,TU AS PERDU !") | |
elif choixJoueur == "3": | |
print("Il y a un dragon endormi dans cette pièce.") | |
print("Le dragon ce réveille et te mange.Il te trouve succulent.") | |
print("GAME OVER,TU AS PERDU !") | |
print("Lance à nouveau le jeu pour réessayer.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment