TP3A choisir_tir_3 corrigé bug
No comment
This commit is contained in:
parent
acb20e8b4e
commit
75b07840c0
|
@ -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
|
||||
|
|
Reference in a new issue