commit 41c218d52ba19d6c397a4c4617d0fce1581468e7 Author: Sacha <> Date: Tue Sep 10 14:36:49 2024 +0200 premier commit diff --git a/miniP1.py b/miniP1.py new file mode 100644 index 0000000..fdb3261 --- /dev/null +++ b/miniP1.py @@ -0,0 +1,15 @@ +from random import randint +class Presonnage: + def __init__(self,nom,cat) + self.nom = nom + self.pdv = 20 + self.exp = 1 + self.cat = cat + if self.cat == "guerrier": + self.inventaire = ["épée","potion"] + if self.cat == "magicien": + self.inventaire = ["bâton","potion"] + if self.cat == "voleur": + self.inventaire = ["dague","potion"] + if self.cat == "guerrier": + self.inventaire = ["épée","potion"] \ No newline at end of file