From f94889f97923c31750affc941d1c5bb1466156a7 Mon Sep 17 00:00:00 2001 From: Mattheo Date: Mon, 12 Dec 2022 17:51:19 +0100 Subject: [PATCH] dernier push 12/12 --- main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 9538ebc..9273b9b 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,5 @@ from bataille import * +from pile import Pile_lst def bataille(): tour = 1 @@ -7,8 +8,11 @@ def bataille(): nom = str(input("Entrez votre nom")) j1 = Joueur(carte_j1, nom) j2 = Joueur(carte_j2, "Bot") + p_j1 = Pile_lst() + p_j2 = Pile_lst() while not j1.paquet_j.est_vide() and not j2.paquet_j.est_vide(): valeur_carte_j1 = j1.tire_carte() valeur_carte_j2 = j2.tire_carte() - carte_j1.compare(carte_j2) - \ No newline at end of file + p_j1.empile(valeur_carte_j1) + p_j2.empile(valeur_carte_j2) + p_j1.sommet().compare(p_j2.sommet) \ No newline at end of file