Déplacement dans la branche dédiée

This commit is contained in:
LordOf20th 2019-02-05 23:31:21 +01:00 committed by GitHub
parent 3df9797dae
commit 3c3398ab59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +0,0 @@
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 5 22:22:54 2019
@author: LordOf20th
"""
class Arbre:
""" Classe définissant un arbre, caractérisé par :
- Son état : Sain ou En feu (par défaut à sa création l'arbre est considéré Sain)
- Sa position en x et y """
def __init__(self, x, y):
self.x=x
self.y=y
self.brule=False
def enflammer(self):
""" Méthode pour enflammer l'arbre"""
if not self.brule:
self.brule = True