First commit
This commit is contained in:
14
game.py
Normal file
14
game.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from random import randint
|
||||
|
||||
def game():
|
||||
print "Jouons."
|
||||
reponse = raw_input("Droite ou gauche ?").lower()
|
||||
if reponse == "droite" or reponse == "d":
|
||||
print "Perdu, c'etait gauche."
|
||||
elif reponse == "gauche" or reponse == "g":
|
||||
print "Bravo."
|
||||
else:
|
||||
print "Decide-toi."
|
||||
game()
|
||||
|
||||
game()
|
||||
Reference in New Issue
Block a user