15 lines
340 B
Python
15 lines
340 B
Python
# -*-coding:Utf-8 -*
|
|
|
|
"""Ce module contient la classe Carte."""
|
|
|
|
class Carte:
|
|
|
|
"""Objet de transition entre un fichier et un labyrinthe."""
|
|
|
|
def __init__(self, nom, chaine):
|
|
self.nom = nom
|
|
self.labyrinthe = creer_labyrinthe_depuis_chaine(chaine)
|
|
|
|
def __repr__(self):
|
|
return "<Carte {}>".format(self.nom)
|