diff --git a/Mini projet nb1.py b/Mini projet nb1.py index e3a64b2..951dd40 100644 --- a/Mini projet nb1.py +++ b/Mini projet nb1.py @@ -50,9 +50,23 @@ class Personnage: return self.exp def affiche_caracteristiques (self): - print ("Je suis", self.nom, "je suis un", self.cat, self.pdv, self.exp) + print ("Je suis", self.nom, "je suis un", self.cat, "j'ai", self.pdv,"point de vie et", self.exp, "point d'experience") def affiche_inventaire (self): print ("j'ai", self.inventaire) -p = Personnage("pierrot","guerrier") +#p = Personnage("pierrot","guerrier") + +def jouer(): + nomP1 = input("joueur 1 votre nom") + catP1 =input ("quel est la catégorie du jouer 1") + p1 = Personnage (nomP1, catP1) + + nomP2 = input("joueur 2 votre nom") + catP2 =input ("quel est la catégorie du jouer 2") + p2 = Personnage (nomP2, catP2) + + while p1.pdv > 0 and p2.pdv > 0: + + fheuizyf + \ No newline at end of file