Browse Source

Transférer les fichiers vers ''

pas mal d'erreurs de corrigées Uwu
master
DELPUI Loïc 11 months ago
parent
commit
26db606cca
  1. 7
      projet bataille.py

7
projet bataille.py

@ -42,14 +42,12 @@ def click(event):
canvas.itemconfig(player_cartecolor[i], fill = "#fff") 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_carte[i], text = cartes_tour[-i-1].valeur + cartes_tour[-i-1].couleur)
canvas.itemconfig(player_left[i], text = "Left : " + str(players[i].taille())) 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") canvas.itemconfig(player_carte[i], fill = "#f00")
else: else:
canvas.itemconfig(player_carte[i], fill = "#000") canvas.itemconfig(player_carte[i], fill = "#000")
def retourne_carte(): def retourne_carte():
for rep in range(2):
cartes_tour.extend([players[0].defiler(), players[1].defiler()])
for i in range(2): for i in range(2):
canvas.itemconfig(player_cartecolor[i], fill = "#f77") canvas.itemconfig(player_cartecolor[i], fill = "#f77")
canvas.itemconfig(player_carte[i], text = "") canvas.itemconfig(player_carte[i], text = "")
@ -96,7 +94,8 @@ def click(event):
conn.commit() conn.commit()
couleurs = ["", "", "", ""] 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 #J=Jack
#Q=Queen #Q=Queen
#R=Roi #R=Roi

Loading…
Cancel
Save