From b44252c32b8c29749bfa7cd5944c2124ff572e93 Mon Sep 17 00:00:00 2001 From: manon Date: Tue, 17 Sep 2024 15:42:41 +0200 Subject: [PATCH] 8eme git --- Mini projet nb1.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Mini projet nb1.py b/Mini projet nb1.py index f6a007b..cd70709 100644 --- a/Mini projet nb1.py +++ b/Mini projet nb1.py @@ -67,5 +67,10 @@ def jouer(): p2 = Personnage (nomP2, catP2) while p1.pdv > 0 and p2.pdv > 0: - p1.jet_defense - p2.jet_ \ No newline at end of file + p1.jet_attaque + p2.jet_defense + if p1.pdv > 0 and p2.pdv > 0: + p2.jet_attaque + p1.jet_defense + else : + print ("you are dead") \ No newline at end of file