TP3A choisir_tir_3 corrigé bug

No comment
This commit is contained in:
Geoffrey Frogeye 2015-02-17 11:34:34 +01:00
parent acb20e8b4e
commit 75b07840c0

View file

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