Skip to content

Commit cb35287

Browse files
authored
Improve the werewolves game example; Enable the copy button in tutorial; Update version into v1.0.6dev (#840)
1 parent c635281 commit cb35287

9 files changed

Lines changed: 662 additions & 437 deletions

File tree

docs/tutorial/_static/css/gallery.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
display: none;
33
}
44

5-
.sphx-glr-download {
5+
.sphx-glr-footer {
6+
display: flex;
7+
flex-direction: row;
8+
gap: 8px;
9+
}
10+
11+
.sphx-glr-download-zip {
612
display: none;
713
}
814

examples/game/werewolves/README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ Specifically, this game is consisted of
1010
- one witch 🧙‍♀️ and
1111
- one hunter 🏹.
1212

13+
## ✨Changelog
14+
15+
- 2025-10: We update the example to support more features:
16+
- Allow the dead players to leave messages.
17+
- Support Chinese now.
18+
- Support **continuous gaming** by loading and saving session states, so the same agents can play multiple games and continue learning and optimizing their strategies.
19+
20+
1321
## QuickStart
1422

1523
Run the following command to start the game, ensuring you have set up your DashScope API key as an environment variable.
@@ -39,8 +47,23 @@ control the game flow and interactions.
3947
We also use the ``MsgHub`` and pipelines in AgentScope to manage the complex interactions like discussion and voting.
4048
It's very interesting to see how agents play the werewolf game with different roles and objectives.
4149

42-
Additionally, you can use the ``UserAgent`` to replace one of the agents to play with AI agents!
50+
# Advanced Usage
51+
52+
## Change Language
53+
54+
The game is played in English by default. Just uncomment the following line in `game.py` to switch to Chinese.
55+
56+
```python
57+
# from prompt import ChinesePrompts as Prompts
58+
```
59+
60+
## Play with Agents
61+
62+
You can replace one of the agents with a `UserAgent` to play with AI agents.
63+
64+
## Change Models
4365

66+
Just modify the `model` parameter in `main.py` to try different models. Note you need to change the formatter at the same time to match the model's output format.
4467

4568
## Further Reading
4669

0 commit comments

Comments
 (0)