From a2bd215e033b86fd516f0d73177378478c80a62b Mon Sep 17 00:00:00 2001
From: to <tgueuret@live.fr>
Date: Fri, 31 May 2024 15:43:21 +0200
Subject: [PATCH] =?UTF-8?q?=C3=A7a=20suit=20le=20tp?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 snake/snake_template.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/snake/snake_template.py b/snake/snake_template.py
index 03f11d6..9813891 100644
--- a/snake/snake_template.py
+++ b/snake/snake_template.py
@@ -14,6 +14,13 @@ green  = (0, 255, 0)
 blue   = (50, 153, 213)
 
 # Step 1: Defining the window's graphical variables
+unite = 10
+largeur_zone = 60
+hauteur_zone = 40
+couleur_nourriture = red
+couleur_serpent = green
+couleur_fond = white
+
 
 # Step 2.3: Showing a square in the window
 def draw_square(x: int, y: int, colour: tuple):
@@ -62,7 +69,7 @@ def game_turn(snake, end, direction, food):
 # Initialisation of the game window ==> do not delete
 pygame.init()
 # Step 2.1: replace 100,100 by using the correct variables
-console = pygame.display.set_mode((100,100))
+console = pygame.display.set_mode((largeur_zone, hauteur_zone))
 
 # Set window title
 pygame.display.set_caption("Snake by Rubika_BI1_Anim3D")
-- 
GitLab