From 3ad634fb6af403fceeaef114946daabc054ffc88 Mon Sep 17 00:00:00 2001
From: CHOPIN LouAnne SERRET Valentine <lou-anne.chopin@etu.univ-amu.fr>
Date: Fri, 10 Jan 2025 15:06:10 +0100
Subject: [PATCH] question 7

---
 main.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/main.py b/main.py
index 7c18079..dd33666 100644
--- a/main.py
+++ b/main.py
@@ -32,12 +32,20 @@ class TabletteChocolat :
             for y in range(j, self.n):
                 self.tablette[x][y] = 0
 
+    def plot(self):
+        plt.gca().set_aspect('equal')
+        for i in range(self.m):
+            for j in range(self.n):
+                if self.tablette[i][j] == 1 :
+            plt.fill([i, i+1, i+1, i], [j, j, j+1, j+1], colors = '#D5B799')
+
 
 t = TabletteChocolat(3, 4)
 print(t)
 g = t.coups_possibles()
 list(g)
 print (g)
-
+plt.axis('off')
+plt.show()
 
 
-- 
GitLab