Skip to content
Snippets Groups Projects
Commit 1eb234eb authored by Leo Litaize's avatar Leo Litaize
Browse files

Question 4 ??

parent 949fdd16
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,17 @@ class TabletteChocolat:
#help(itertools.chain) ??????
def est_possible(self, i, j):
for a in list(g):
if a==(i,j):
return "Ce coup est possible"
else:
return "Ce coup n est pas possible"
t=TabletteChocolat(3,4)
print(t)
TabletteChocolat(4,3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment