You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Witch is a villager with two one-time potions. Each night she learns who
the werewolves attacked and may use a healing potion to save them and/or a
poison potion to kill any one player.
- roles.py: new Role.WITCH; standard_setup seats one once the village has five
or more seats.
- engine.py: _witch_action runs the Witch's turn after the doctor; the night
phase is reworked to resolve multiple simultaneous deaths (_announce_deaths),
each of which can still trigger a Hunter shot. Potion use is tracked on
GameState so each potion is strictly once-per-game.
- agents: new concrete Agent.witch_turn; RandomAgent and LLMAgent override it,
CLI HumanAgent prompts for it. The offline mock banks both potions.
- prompts: a dedicated witch_request template.
- 3 new tests covering the heal and poison potions.
Closes#2
Co-authored-by: JuneQQQ <june1243134432@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments