From 03eef5d908fe8c9f4957cbac0b88a80e4885e782 Mon Sep 17 00:00:00 2001 From: eli <> Date: Mon, 15 Sep 2025 11:55:05 +0200 Subject: [PATCH] 3 --- personnage.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/personnage.py b/personnage.py index 723e0c3..2efcc61 100644 --- a/personnage.py +++ b/personnage.py @@ -56,6 +56,14 @@ class Personnage : inv = self.inventaire[4] , self.inventaire[1] print("Votre inventaire contient", *inv, sep=" ,") - +P1 = Personnage("Kaaris", "guerrier") +P2 = Personnage("Booba", "voleur") + + +def dé_huit (x) : + return random.randint(1, 8) +def dé_quatre (x) : + return random.randint(1, 4) + kaaris = Personnage("Kaaris", "guerrier") booba = Personnage("Booba", "voleur")