Browse Source

8eme git

master
manon 2 months ago
parent
commit
b44252c32b
  1. 9
      Mini projet nb1.py

9
Mini projet nb1.py

@ -67,5 +67,10 @@ def jouer():
p2 = Personnage (nomP2, catP2) p2 = Personnage (nomP2, catP2)
while p1.pdv > 0 and p2.pdv > 0: while p1.pdv > 0 and p2.pdv > 0:
p1.jet_defense p1.jet_attaque
p2.jet_ p2.jet_defense
if p1.pdv > 0 and p2.pdv > 0:
p2.jet_attaque
p1.jet_defense
else :
print ("you are dead")
Loading…
Cancel
Save