diff --git a/projet_jdr.py b/projet_jdr.py index b177c87..c73f347 100644 --- a/projet_jdr.py +++ b/projet_jdr.py @@ -60,4 +60,10 @@ class Personnage : #affiche l'inventaire du personnage def affiche_inventaire (self): print(" dans mon inventaire j'ai", self.inventaire) + +def combat (): + attaque = perso1.jet_attaque() + defence = perso2.jet_defence() + if attaque > defence : + lance \ No newline at end of file