Browse Source

bientot

master
Sacha 2 months ago
parent
commit
65368c8195
  1. 8
      miniP1.py

8
miniP1.py

@ -73,14 +73,16 @@ def game():
Player_2_cat = "Un magnifique Elfe" Player_2_cat = "Un magnifique Elfe"
print ("Bien que votre souhait sois exaucé vous etes un" ,Player_2_cat) print ("Bien que votre souhait sois exaucé vous etes un" ,Player_2_cat)
player_1 = Personnage (Player_1_nom, Player_1_cat) Player_1 = Personnage (Player_1_nom, Player_1_cat)
player_2 = Personnage (Player_2_nom, Player_2_cat) Player_2 = Personnage (Player_2_nom, Player_2_cat)
while player_1.pdv > 0 and player_2.pdv > 0 : def tour ():
while Player_1.pdv > 0 and player_2.pdv > 0 :
PL1_A = player_1.jet_attaque() PL1_A = player_1.jet_attaque()
PL2_D = player_2.jet_defence() PL2_D = player_2.jet_defence()
if PL1_A > PL2_D: if PL1_A > PL2_D:
Player_1.change_pdv(-randint(1,8))

Loading…
Cancel
Save