Skip to content
Snippets Groups Projects
Commit 44356e74 authored by rachida0001's avatar rachida0001
Browse files

question 9

parent 36fbce54
No related branches found
No related tags found
No related merge requests found
......@@ -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} '))
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} '))
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__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment