diff --git a/main.py b/main.py index 6dd014b..414f4ac 100644 --- a/main.py +++ b/main.py @@ -15,4 +15,15 @@ def bataille(): valeur_carte_j2 = j2.tire_carte() p_j1.empile(valeur_carte_j1) p_j2.empile(valeur_carte_j2) - p_j1.sommet().compare(p_j2.sommet) + gagne = p_j1.sommet().compare(p_j2.sommet()) + if gagne == 1: + j1.paquet_j.append(p_j2.depiler()) + elif gagne == 2: + j2.paquet_j.append(p_j1.depiler()) + else: + for loop in range(2): + valeur_carte_j1 = j1.tire_carte() + valeur_carte_j2 = j2.tire_carte() + p_j1.empile(valeur_carte_j1) + p_j2.empile(valeur_carte_j2) +