|
@ -68,7 +68,7 @@ def game(): |
|
|
if Player_2_cat == "2": |
|
|
if Player_2_cat == "2": |
|
|
Player_2_cat = "Puissant Magicien" |
|
|
Player_2_cat = "Puissant Magicien" |
|
|
if Player_2_cat == "3": |
|
|
if Player_2_cat == "3": |
|
|
Player_2_cat = "vicieux de Voleur" |
|
|
Player_2_cat = "Fripon le Voleur" |
|
|
if Player_2_cat == "4": |
|
|
if Player_2_cat == "4": |
|
|
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) |
|
@ -76,6 +76,13 @@ def game(): |
|
|
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 : |
|
|
|
|
|
PL1_A = player_1.jet_attaque() |
|
|
|
|
|
PL2_D = player_2.jet_defence() |
|
|
|
|
|
|
|
|
|
|
|
if PL1_A > PL2_D: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|