|
|
@ -9,7 +9,6 @@ def jouer_tour(window): |
|
|
|
if not window.p1.paquet.est_vide() and not window.p2.paquet.est_vide(): |
|
|
|
pile_j1.empiler(window.p1.tire_carte()) |
|
|
|
pile_j2.empiler(window.p2.tire_carte()) |
|
|
|
window.show_cards() |
|
|
|
|
|
|
|
gagne = pile_j1.sommet().compare(pile_j2.sommet()) |
|
|
|
if gagne == 1: |
|
|
@ -40,8 +39,7 @@ def jouer_tour(window): |
|
|
|
window.text_content.set("Vous avez perdu") |
|
|
|
elif window.p2.paquet.est_vide(): |
|
|
|
window.text_content.set("L'ordinateur à perdu") |
|
|
|
|
|
|
|
#jeux = Jeux(32) |
|
|
|
window.show_cards() |
|
|
|
|
|
|
|
window = Window(jouer_tour) |
|
|
|
window.build_pregame() |
|
|
|