29 lines
No EOL
660 B
Python
Executable file
29 lines
No EOL
660 B
Python
Executable file
import random
|
|
julyan=0
|
|
start=0
|
|
|
|
|
|
a = random.randint(0,16)
|
|
b = random.randint(0,16)
|
|
|
|
while julyan == 0:
|
|
if start == 0:
|
|
print("A toi de jouer - selectionnez deux valeurs")
|
|
if start == 1:
|
|
print("Réessaye !")
|
|
x = int(input("X = "))
|
|
y = int(input("Y = "))
|
|
if x == a and y == b:
|
|
print ("*boum*")
|
|
start=1
|
|
julyan=1
|
|
else :
|
|
if x == a :
|
|
print ("Première coordonnée correcte !")
|
|
start=1
|
|
if y == b :
|
|
print ("Deuxième coordonée correcte !")
|
|
start=1
|
|
else :
|
|
print ("*plouf*")
|
|
start=1 |