From 80e584a6ba491a59ede988474056bbae1ed12362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?RAVET=20C=C3=A9lya?= Date: Mon, 14 Sep 2026 09:51:02 +0200 Subject: [PATCH] faire combat --- projet_jdr.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projet_jdr.py b/projet_jdr.py index b177c87..c73f347 100644 --- a/projet_jdr.py +++ b/projet_jdr.py @@ -60,4 +60,10 @@ class Personnage : #affiche l'inventaire du personnage def affiche_inventaire (self): print(" dans mon inventaire j'ai", self.inventaire) + +def combat (): + attaque = perso1.jet_attaque() + defence = perso2.jet_defence() + if attaque > defence : + lance \ No newline at end of file