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