From 630160903e41ca3f9fb863b22f43158f754d86e9 Mon Sep 17 00:00:00 2001 From: Treacky Date: Thu, 3 Oct 2024 15:58:33 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'rue.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rue.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rue.py b/rue.py index d7e5f44..a7e21ff 100644 --- a/rue.py +++ b/rue.py @@ -26,11 +26,17 @@ def immeuble_aleatoire(numero: int) -> dict: informations['numero'] = numero informations['etages'] = etage_aleatoire() # Ajout de la hauteur des étages informations['porte'] = coordonnees_porte # Coordonées portes pour les fenêtres + informations['toit_type'] = toit_aleatoire() + informations['toit_couleur'] = 'Black' return informations def couleur_aleatoire() -> str: return choice(['red','light green','grey','sky blue','olive','seagreen','mediumaquamarine','peachpuff']) +def toit_aleatoire() -> str: + return choice(['pointu','arrondi']) + + def etage_aleatoire() -> str: return choice([80,160,240,320]) @@ -137,3 +143,4 @@ if __name__ == '__main__': +