From 85eba23a43fa84439b52eb38f576a89a567ae144 Mon Sep 17 00:00:00 2001 From: "vandepoele.e" Date: Mon, 12 Dec 2022 17:51:51 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9pot=20:=20Modif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bataille.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bataille.py b/bataille.py index 19197ec..c3f53a3 100644 --- a/bataille.py +++ b/bataille.py @@ -31,9 +31,10 @@ class Jeux: def distribue(self): f1 = File() f2 = File() - for i in range(self.paquet.taille()): - f1.enfiler(self.paquet[i]) - + for val in range(self.paquet.taille()): + f1.enfiler(self.paquet[val]) + f2.enfiler(self.paquet[val]) + print(f1, f2) class Joueur: def __init__(self, paquet_j, nom): @@ -42,4 +43,4 @@ class Joueur: def tire_carte(self): self.derniere_carte = self.paquet_j.defiler() - return self.derniere_carte + return self.derniere_carte \ No newline at end of file