From 1ebad477de39971c310cdb2deca66f514209a7d3 Mon Sep 17 00:00:00 2001 From: "aboulin.a" Date: Wed, 14 Dec 2022 10:25:57 +0100 Subject: [PATCH] changement fichiers --- File.py => lib/File.py | 0 Pile.py => lib/Pile.py | 0 main.py | 4 ++-- bataille.py => util/bataille.py | 4 ++-- window.py => util/window.py | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename File.py => lib/File.py (100%) rename Pile.py => lib/Pile.py (100%) rename bataille.py => util/bataille.py (94%) rename window.py => util/window.py (100%) diff --git a/File.py b/lib/File.py similarity index 100% rename from File.py rename to lib/File.py diff --git a/Pile.py b/lib/Pile.py similarity index 100% rename from Pile.py rename to lib/Pile.py diff --git a/main.py b/main.py index 9273b9b..6dd014b 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,5 @@ from bataille import * -from pile import Pile_lst +from lib.Pile import Pile_lst def bataille(): tour = 1 @@ -15,4 +15,4 @@ def bataille(): valeur_carte_j2 = j2.tire_carte() p_j1.empile(valeur_carte_j1) p_j2.empile(valeur_carte_j2) - p_j1.sommet().compare(p_j2.sommet) \ No newline at end of file + p_j1.sommet().compare(p_j2.sommet) diff --git a/bataille.py b/util/bataille.py similarity index 94% rename from bataille.py rename to util/bataille.py index c3f53a3..9b12771 100644 --- a/bataille.py +++ b/util/bataille.py @@ -1,5 +1,5 @@ from random import * -from File import File_lst as File +from lib.File import File_lst as File class Carte: def __init__(self, valeur, couleur): @@ -43,4 +43,4 @@ class Joueur: def tire_carte(self): self.derniere_carte = self.paquet_j.defiler() - return self.derniere_carte \ No newline at end of file + return self.derniere_carte diff --git a/window.py b/util/window.py similarity index 100% rename from window.py rename to util/window.py