From d0a461f442b0bfd9b6263e0ce5940a7f56d1a762 Mon Sep 17 00:00:00 2001 From: w_iyad Date: Thu, 28 Nov 2024 15:59:07 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'app.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 9d564c6..2ec768f 100644 --- a/app.py +++ b/app.py @@ -24,7 +24,7 @@ class Chien : self.x = self.x + dist if self.x < 0: self.x = 0 - elif self.x >= XMAX: + elif self.x > XMAX: self.x = XMAX def dep_y(self,dist) : @@ -32,7 +32,7 @@ class Chien : self.y = self.y + dist if self.y < 0: self.y = 0 - elif self.y >= YMAX: + elif self.y > YMAX: self.y = YMAX class Joueur :