diff --git a/main.py b/main.py index 43cc044df8ccf947c830ec702378492ec17f0f0e..2961506438729b7abbb004eea443b5fc7102a36f 100644 --- a/main.py +++ b/main.py @@ -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)