diff --git a/main.py b/main.py index d7311406bd7ad344a36f0e033501073d7decb9e6..8ab4156ba7625a0deadc9426444694fe977d699e 100644 --- a/main.py +++ b/main.py @@ -22,14 +22,15 @@ class TabletteChocolat : return coups_possibles def est_possible(self, i, j) : + coup = i, j + return 0<= i < self.m and 0 <= j < self.n and self.tablette[i][j] == 1 -#t = TabletteChocolat(3,4) -#print(t) t = TabletteChocolat(3, 4) +print(t) g = t.coups_possibles() list(g) print (g)