|
|
|
@ -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__':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|