TP3A choisir_tir_3 fix copier/coller
This commit is contained in:
parent
bd2f00543a
commit
f4e3b50d01
|
@ -115,7 +115,7 @@ def choisir_tir_3(jeu, res):
|
||||||
if jeu['ia']['mode'] == 0: # Si en mode aléatoire
|
if jeu['ia']['mode'] == 0: # Si en mode aléatoire
|
||||||
while True:
|
while True:
|
||||||
x = randint(1, jeu['plateau']['larg'])
|
x = randint(1, jeu['plateau']['larg'])
|
||||||
y = randint(1, jeu['plateau']['larg'])
|
y = randint(1, jeu['plateau']['haut'])
|
||||||
coup = (x, y)
|
coup = (x, y)
|
||||||
if coup not in jeu['coups_joues']:
|
if coup not in jeu['coups_joues']:
|
||||||
break
|
break
|
||||||
|
|
Reference in a new issue