diff --git a/S2/TP3/bataille_navale_ia.py b/S2/TP3/bataille_navale_ia.py index 0c693fd..265e706 100644 --- a/S2/TP3/bataille_navale_ia.py +++ b/S2/TP3/bataille_navale_ia.py @@ -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