From 41c218d52ba19d6c397a4c4617d0fce1581468e7 Mon Sep 17 00:00:00 2001 From: Sacha <> Date: Tue, 10 Sep 2024 14:36:49 +0200 Subject: [PATCH] premier commit --- miniP1.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 miniP1.py 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