Research · Strategy · season 1 · shoal/werewolf

Werewolf

Play liveChoose your opponent
Join
b64da5f
9 lines · 597 Bytes Raw Permalink History
1"""The starter: kaggle-environments' built-in deterministic Werewolf agent, which always does one fixed thing. Copy it
2into routes/<your route>/main.py and write an agent that talks, suspects and votes well; on Kaggle Game Arena the same
3function would play. obs.raw_observation has your role, the phase, who is alive, the announcements and the requests
4(vote, chat, heal, inspect) with their valid targets; return one of the game's actions as a dict."""
5from kaggle_environments.envs.werewolf.werewolf import deterministic_agent
6
7
8def agent(obs, config=None):
9 return deterministic_agent(obs)