|
|
@ -42,14 +42,12 @@ def click(event): |
|
|
|
canvas.itemconfig(player_cartecolor[i], fill = "#fff") |
|
|
|
canvas.itemconfig(player_carte[i], text = cartes_tour[-i-1].valeur + cartes_tour[-i-1].couleur) |
|
|
|
canvas.itemconfig(player_left[i], text = "Left : " + str(players[i].taille())) |
|
|
|
if cartes_tour[i].couleur in ["♥", "♦"]: |
|
|
|
if cartes_tour[-i-1].couleur in ["♥", "♦"]: |
|
|
|
canvas.itemconfig(player_carte[i], fill = "#f00") |
|
|
|
else: |
|
|
|
canvas.itemconfig(player_carte[i], fill = "#000") |
|
|
|
|
|
|
|
def retourne_carte(): |
|
|
|
for rep in range(2): |
|
|
|
cartes_tour.extend([players[0].defiler(), players[1].defiler()]) |
|
|
|
for i in range(2): |
|
|
|
canvas.itemconfig(player_cartecolor[i], fill = "#f77") |
|
|
|
canvas.itemconfig(player_carte[i], text = "") |
|
|
@ -96,7 +94,8 @@ def click(event): |
|
|
|
conn.commit() |
|
|
|
|
|
|
|
couleurs = ["♥", "♦", "♣", "♠"] |
|
|
|
numeros = ["2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "R", "S"] |
|
|
|
numeros = ["2", "3", "4", "5", "6", "7", "8", "9", "D", "J", "Q", "R", "S"] |
|
|
|
#D=Dix |
|
|
|
#J=Jack |
|
|
|
#Q=Queen |
|
|
|
#R=Roi |
|
|
|