diff --git a/main.py b/main.py index c2a9f92bcbc20c266087aa7691c43258e98c418c..93c8af791679f26ccf5692cbe89dcd145fe5f967 100644 --- a/main.py +++ b/main.py @@ -7,10 +7,14 @@ class TabletteChocolat: def __repr__(self): return ("Tablette de chocolat de" str(self)) def __coups_possibles__(self): - for p in range(m) + for p in range(m): return i in tuple(p,0) or 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: raise TypeError(int(self.m),int(self.n))