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