TP3A choisir_tir_3 fix copier/coller

This commit is contained in:
Geoffrey Frogeye 2015-02-22 13:13:20 +01:00
parent bd2f00543a
commit f4e3b50d01

View file

@ -115,7 +115,7 @@ def choisir_tir_3(jeu, res):
if jeu['ia']['mode'] == 0: # Si en mode aléatoire
while True:
x = randint(1, jeu['plateau']['larg'])
y = randint(1, jeu['plateau']['larg'])
y = randint(1, jeu['plateau']['haut'])
coup = (x, y)
if coup not in jeu['coups_joues']:
break