Skip to content
Snippets Groups Projects
Commit 006e04b4 authored by COULIBALY Gie drissa's avatar COULIBALY Gie drissa
Browse files

Update file main.py

parent 2edd71d8
Branches
No related tags found
No related merge requests found
...@@ -7,10 +7,14 @@ class TabletteChocolat: ...@@ -7,10 +7,14 @@ class TabletteChocolat:
def __repr__(self): def __repr__(self):
return ("Tablette de chocolat de" str(self)) return ("Tablette de chocolat de" str(self))
def __coups_possibles__(self): def __coups_possibles__(self):
for p in range(m) for p in range(m):
return i in tuple(p,0) return i in tuple(p,0)
or or
return i in tuple(0,p) return i in tuple(0,p)
def __est_possible__(self,i,j):
if (self.i,self.j) in list(g):
return str("Ce coup est possible")
except: except:
raise TypeError(int(self.m),int(self.n)) raise TypeError(int(self.m),int(self.n))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment