diff --git a/main.py b/main.py
index 8a2421a4b2d65867c8215950baa3321ef64ddd86..e72a9ced84a0d3e80bcaff799ddc2b0d0c04afd3 100644
--- a/main.py
+++ b/main.py
@@ -35,11 +35,19 @@ class TabletteChocolat:
     def demander_coup(self):
         rep = input("coup des lignes (l) ou colonnes (c)")
         if rep =="l":
-            i = int(input(f'choisi un nombre de 1 a {self.m} '))
-            j = 0
+            while True:
+                i = int(input("choisi un nombre de à "))
+                j = 0
+                if((i,j) in list(self.coups_possibles())):
+                    break
+
         else : 
-            j = int(input(f'choisi un nombre de 1 a {self.n} '))
-            i = 0
+            while True:
+                j = int(input("choisi un nombre de à "))
+                i = 0
+                if((i,j) in list(self.coups_possibles())):
+                    break
+
         return (i,j)
 
 if __name__ == "__main__":