Eric Botti commited on
Commit ·
f229ea5
1
Parent(s): 1108bdd
removed game rules MD file load
Browse files- GAME_RULES.MD +1 -1
- src/prompts.py +18 -3
GAME_RULES.MD
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
You are playing a social deduction game where every player pretends the be the same animal.
|
| 4 |
During the round each player gets a turn to describe themselves using an "I"-statement as if they were the animal.
|
|
|
|
| 1 |
+
# Game Rules
|
| 2 |
|
| 3 |
You are playing a social deduction game where every player pretends the be the same animal.
|
| 4 |
During the round each player gets a turn to describe themselves using an "I"-statement as if they were the animal.
|
src/prompts.py
CHANGED
|
@@ -8,9 +8,24 @@ def format_prompt(prompt_name, **kwargs):
|
|
| 8 |
return fetch_prompt(prompt_name).format(**kwargs)
|
| 9 |
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
_assign_herd = """\
|
| 16 |
You are a **{herd_animal}**, keep this secret at all costs and figure which player is not really a {herd_animal}
|
|
|
|
| 8 |
return fetch_prompt(prompt_name).format(**kwargs)
|
| 9 |
|
| 10 |
|
| 11 |
+
_game_rules = """\
|
| 12 |
+
You are playing a social deduction game where every player pretends the be the same animal.
|
| 13 |
+
During the round each player gets a turn to describe themselves using an "I"-statement as if they were the animal.
|
| 14 |
+
All but one of players know what animal they are pretending to be, collectively these players are called the Herd.
|
| 15 |
+
The remaining player, known as the Chameleon, does not know what animal the others are pretending to be.
|
| 16 |
+
The Chameleon must blend in by providing details about the animal using context from other players.
|
| 17 |
+
The Herd must be careful not to give away too much information with their responses so that Chameleon deduce the animal.
|
| 18 |
+
|
| 19 |
+
After all players have spoken, two thing will happen:
|
| 20 |
+
1. The Chameleon will guess what animal the other players are pretending to be
|
| 21 |
+
2. The Herd will vote on who they think the Chameleon is.
|
| 22 |
+
|
| 23 |
+
The game is played in rounds, and the first player to reach 7 points wins. Points are awarded during a round as follows:
|
| 24 |
+
- If the majority of the Herd does not vote for the Chameleon, the Chameleon gets +1 point
|
| 25 |
+
- If the Chameleon guesses the animal correctly, they get +1 point
|
| 26 |
+
- If a member of the Herd votes for the Chameleon, they get +1 point
|
| 27 |
+
- If the Chameleon is unable to guess the animal, each member of the Herd gets +1 point
|
| 28 |
+
"""
|
| 29 |
|
| 30 |
_assign_herd = """\
|
| 31 |
You are a **{herd_animal}**, keep this secret at all costs and figure which player is not really a {herd_animal}
|