# Offset plaster volumes, turquoise shutters, open terraces and a garden pool.
from hearthwright import Attachment, Choice, Design, Feature, Join, Level, Materials, Roof, Site, Volume
from hearthwright.cli import run

DESIGN = Design(
    'House of the blue courtyard',
    volumes=(
        Volume('house',
               width=Choice(15, 17),
               depth=Choice(13, 15),
               levels=(Level(('living', 'kitchen')),
                       Level(('sleeping', 'brewing'), layout=Choice('open', 'cross'))),
               roof=Roof(ridge='x', pitch=.5)),
        Volume('library',
               width=Choice(9, 11),
               depth=9,
               join=Join('house', 'east', Choice('front', 'back')),
               levels=(Level(('enchanting', 'study')),),
               roof=Roof(pitch=.5, ridge='z')),
    ),
    materials=Materials(wall='white', frame='birch', roof='tile', trim='sandstone', accent='cyan'),
    site=Site(planting='mediterranean', paving='courtyard', margin=3),
    attachments=(Attachment('terrace', 'house', depth=4, cover='pergola'),
                 Attachment('balcony', 'house', level=1, side='west', width=7, cover='pergola')),
    features=(Feature('pool', 'south', Choice(7, 9)), Feature('garden', 'west', 5)),
)

if __name__ == '__main__':
    run(DESIGN)
