feat: replace CONFIG with OPTIONS

This commit is contained in:
莘权 马 2023-08-28 19:07:59 +08:00
parent 23ba0f3540
commit 7895af2c5a
8 changed files with 24 additions and 17 deletions

View file

@ -77,9 +77,9 @@ async def startup(lesson_file: str, investment: float = 3.0, n_round: int = 1, *
lesson = demo_lesson
company = SoftwareCompany()
company.hire([Teacher(options=company.options, cost_manager=company.cost_manager, *args, **kwargs)])
company.hire([Teacher(*args, **kwargs)])
company.invest(investment)
company.start_project(lesson, role="Teacher", cause_by=TeachingPlanRequirement)
company.start_project(lesson, cause_by=TeachingPlanRequirement, role="Teacher", **kwargs)
await company.run(n_round=1)