Skip to content
Snippets Groups Projects
Commit d0e187fc authored by GUYOT Maelis's avatar GUYOT Maelis
Browse files

question5

parent 93d0c092
No related branches found
No related tags found
No related merge requests found
......@@ -20,10 +20,12 @@ class TabletteChocolat:#création de la classe
g=[]
for i in range(self.m):
for j in range(self.n):
g.append(i,j)
g.append((i,j))
return g
def est_possible(self,i,j):
if isinstance((i,j),self.coups_possibles()):
return True
#Programme principal
#if __name__=='main':
t = TabletteChocolat(3,4)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment