Skip to content
Snippets Groups Projects
Commit 630616ba authored by BAHOU Mehdi's avatar BAHOU Mehdi
Browse files

Question 5

parent bb0be5eb
No related branches found
No related tags found
No related merge requests found
......@@ -39,9 +39,15 @@ class TabletteChocolat:
j +=1
yield (i,j)
return chain(i,j)
def est_possible(self, i, j):
if (i,j) in self.coups_possibles():
return True
else:
return False
#Programme Principal
Tablette = TabletteChocolat(3,4)
print(Tablette)
g= Tablette.coups_possibles()
print(list(g))
print(Tablette.est_possible(1,0))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment