From cfb827161e03cf98269a451bcbbbf883d9ebc6ee Mon Sep 17 00:00:00 2001 From: Sacha <> Date: Mon, 16 Sep 2024 11:54:59 +0200 Subject: [PATCH] ez win --- miniP1.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/miniP1.py b/miniP1.py index c6cb0d5..2bd4359 100644 --- a/miniP1.py +++ b/miniP1.py @@ -68,7 +68,7 @@ def game(): if Player_2_cat == "2": Player_2_cat = "Puissant Magicien" if Player_2_cat == "3": - Player_2_cat = "vicieux de Voleur" + Player_2_cat = "Fripon le Voleur" if Player_2_cat == "4": Player_2_cat = "Un magnifique Elfe" print ("Bien que votre souhait sois exaucé vous etes un" ,Player_2_cat) @@ -76,6 +76,13 @@ def game(): player_1 = Personnage (Player_1_nom, Player_1_cat) player_2 = Personnage (Player_2_nom, Player_2_cat) + while player_1.pdv > 0 and player_2.pdv > 0 : + PL1_A = player_1.jet_attaque() + PL2_D = player_2.jet_defence() + + if PL1_A > PL2_D: + + \ No newline at end of file