You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
647 B
30 lines
647 B
import File_lst from File
|
|
from random import *
|
|
|
|
|
|
class Carte:
|
|
def __init__(self, valeur, couleur):
|
|
self.valeur = valeur
|
|
self.couleur = couleur
|
|
|
|
def compare(self, other):
|
|
if self.valeur > other:
|
|
return 1
|
|
elif self.valeur < other:
|
|
return -1
|
|
else:
|
|
return 0;
|
|
|
|
class Jeux:
|
|
def __init__(self, paquet, nbcartes):
|
|
self.paquet = paquet
|
|
|
|
class Joueur:
|
|
def __init__(self, paquet_joueur, nom):
|
|
self.paquet_joueur = paquet_joueur
|
|
self.nom = nom
|
|
|
|
def tire_carte(self, carte):
|
|
self.derniere_carte = carte
|
|
|
|
|