Commit d6122351 authored by Théo BOUTEMY's avatar Théo BOUTEMY
Browse files

Merge remote-tracking branch 'origin/master'

parents b6d22c06 1fc2c3d8
This diff is collapsed.
......@@ -59,10 +59,12 @@ class Montagne(Piece):
"""
classe spécifiant Piece pour représenter une montagne
"""
nb_mont = 0
def __init__(self, abscisse, ordonnee, orientation, plateau):
super().__init__(abscisse, ordonnee, orientation, plateau)
self.nom = str(self.car())
self.numero = Montagne.nb_mont
Montagne.nb_mont += 1
def car(self):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment