From d0e9c9853d96ba04a8b5f8d9656c5361727fa57b Mon Sep 17 00:00:00 2001 From: CHOPIN LouAnne SERRET Valentine <lou-anne.chopin@etu.univ-amu.fr> Date: Fri, 10 Jan 2025 14:54:32 +0100 Subject: [PATCH] question 5 --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index d731140..8ab4156 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) -- GitLab