From 26db606cca953a5c900be82656db2ef5346e4604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DELPUI=20Lo=C3=AFc?= Date: Wed, 20 Dec 2023 15:07:14 +0100 Subject: [PATCH] =?UTF-8?q?Transf=C3=A9rer=20les=20fichiers=20vers=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pas mal d'erreurs de corrigées Uwu --- projet bataille.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/projet bataille.py b/projet bataille.py index 8ebe510..fc7db4f 100644 --- a/projet bataille.py +++ b/projet bataille.py @@ -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