From 006e04b4a99b88781d8dd0869c9fa42b2450466a Mon Sep 17 00:00:00 2001 From: COULIBALY Gie drissa <gie-drissa.coulibaly@etu.univ-amu.fr> Date: Fri, 10 Jan 2025 13:54:23 +0000 Subject: [PATCH] Update file main.py --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c2a9f92..93c8af7 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)) -- GitLab