---
# System prepended metadata

title: Untitled

---

class Petale:
    def __init__(self, age=0):
        self.age = age
    def vieillir (self,x):
        self.age = self.age + x
        if self.age <= 20:
            return True
        else: 
            return False
    def couleur(self):
        if self.age <=  15:
            return("rouge")
        elif self.age > 15 and self.age <= 20:
            return("marron")
        else: 
            return("Le pétale est tombé")
    def __str__(self):
        str_petale = " Age: {} \n Couleur: {}".format(self.age,self.couleur())
        return str_petale
        
class Fleur:      
    def __init__(self,age,fecondee):
        self.age = age 
        self.fecondee = fecondee
        self.petale = 10
    def est_fanant(self):
        if self.age > 15 and self.age <= 20:
            return True
        else:
            return False
    def est_fruit(self):
        if self.age > 20 and self.age <=30 and self.fecondee == True:
            return True
        else:
            return False
    def __str__(self):
        str_fleur = " Age: {} \n Fecondee: {} \n Fane: {} Fruit: {}".format(self.age,self.fecondee, self.est_fanant(),self.est_fruit())
        return str_fleur
        
    
class Feuille:
    def __init__(self, sechant=0):
        self.sechant = sechant
    def statut (self):
        if self.sechant == 0:
            return("vivante")
        else:
            return("séchante")
    def vieillir (self, saison):
        pass
    def couleur (self):
        if self.sechant == 0:
            return("vert")
        elif self.sechant <= 5:
            return("jaune")
        else:
            return("marron")
            
class Branche :
    def __init__(self, epaisseur = 5, angle):
        self.epaisseur = epaisseur
        self.angle = angle
        self.fleur = Fleur()
        self.feuille = Feuille()


from branche import Branche

class Arbre(Branche):
    def __init__(self, coordonnees):
        self.coordonnées = coordonnees
        self.angle =
        
        
class Foret :
    def __init__(self, saison, jour_saison, nb_graines):
        self.saison = saison
        self.jour_saison = jour_saison
        self.nb_graines = nb_graines