Guild Hall
🏰 Welcome to the Guild Hall, where a team of three works together: a planner, a worker and a checker. The planner makes the plan, the worker does each step, and the checker makes sure nothing was skipped before the team reports back.
Each member is its own function with one job. Small members with one job each are easy to test, and easy to swap for a better one later. That's how real agent teams are built. Finish it for the Guild Leader badge: your bot gets its crown.
Instructions
- Make
planner(goal)that returnspip.plan(goal). - Make
worker(step)that returnsdone: dig a hole(with the step). - Make
checker(steps, results)that returnsTrueonly if there's one result per step. - Make
guild(goal)that runs all three and returnsGuild report: 3/3 steps done, orGuild report: check failedif the checker says no. Printguild("plant a tree").
💡 Hint
In guild: steps = planner(goal), then results gets worker(step) for each step. If checker(steps, results): build the report with str(len(results)) and str(len(steps)).