# Run any of the three short room-composition programs with an explicit seed.
import argparse
from pathlib import Path
from hearth.programs import PROGRAMS, building_scene
from hearth.persistence import export_scene

if __name__ == '__main__':
    p = argparse.ArgumentParser()
    p.add_argument('program', choices=PROGRAMS)
    p.add_argument('--seed', type=int, default=0)
    p.add_argument('--output', type=Path, default=Path('samples/building.litematic'))
    a = p.parse_args()
    export_scene(building_scene(PROGRAMS[a.program](a.seed), a.seed), a.output)
