Eric Botti
commited on
Commit
·
2acaa11
1
Parent(s):
778c3d7
updated voting prompts
Browse files- src/game_utils.py +9 -23
src/game_utils.py
CHANGED
@@ -26,27 +26,23 @@ def fetch_prompt(prompt_name):
|
|
26 |
return prompts[prompt_name]
|
27 |
|
28 |
|
29 |
-
|
30 |
GAME RULES: You are playing a social deduction game where every player pretends the be the same animal.
|
31 |
During the round players go around the room and make an "I"-statement as if they were the animal.
|
32 |
All players know what animal they are pretending to be, except one who is known as the Chameleon. The Chameleon and must blend in by providing details about the animal using context from other players.
|
33 |
The other players must be careful not to give away too much information with their responses so that Chameleon cannot guess the animal. After all players have spoken, they vote on who they think the Chameleon is.
|
34 |
-
WIN CONDITION:
|
35 |
-
- If the other players vote for the Chameleon, they win the game.
|
36 |
-
- If they vote for the wrong player then the Chameleon wins the game.
|
37 |
|
38 |
'''
|
39 |
|
40 |
-
|
41 |
You are a {animal}, keep this a secret at all costs.
|
42 |
In 10 words or less give a description of yourself starting with "I". The description should not give away too much information about the {animal} as you do not want the Chameleon to be able to guess what animal you are. Do not repeat responses from other players.
|
43 |
If the Chameleon can guess what animal you really are you will LOSE.
|
44 |
Previously Mentioned Descriptions:
|
45 |
{player_responses}
|
46 |
-
Your Response:
|
47 |
"""
|
48 |
|
49 |
-
|
50 |
You are the Chameleon, keep this a secret at all costs.
|
51 |
You don't know what animal the other players are, your goal is to deduce it using the context they provide.
|
52 |
Starting with "I" describe yourself in 10 words or less as if you are the same animal as the other players.
|
@@ -54,26 +50,16 @@ If no one else has said anything try to say something generic that could be true
|
|
54 |
If the other players realize you are the Chameleon you will LOSE.
|
55 |
Previously Mentioned Descriptions:
|
56 |
{player_responses}
|
57 |
-
Your Response:
|
58 |
"""
|
59 |
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
{players}
|
64 |
-
"""
|
65 |
-
|
66 |
-
herd_vote = """\
|
67 |
-
Who do you think the Chameleon is?
|
68 |
-
"""
|
69 |
-
|
70 |
-
chameleon_prompt = """\
|
71 |
-
You are the Chameleon, vote for someone else to remove suspicion from yourself.
|
72 |
"""
|
73 |
|
74 |
prompts = {
|
75 |
-
"herd_animal":
|
76 |
-
"chameleon_animal":
|
77 |
-
"vote":
|
78 |
}
|
79 |
|
|
|
26 |
return prompts[prompt_name]
|
27 |
|
28 |
|
29 |
+
_game_rules = '''\
|
30 |
GAME RULES: You are playing a social deduction game where every player pretends the be the same animal.
|
31 |
During the round players go around the room and make an "I"-statement as if they were the animal.
|
32 |
All players know what animal they are pretending to be, except one who is known as the Chameleon. The Chameleon and must blend in by providing details about the animal using context from other players.
|
33 |
The other players must be careful not to give away too much information with their responses so that Chameleon cannot guess the animal. After all players have spoken, they vote on who they think the Chameleon is.
|
|
|
|
|
|
|
34 |
|
35 |
'''
|
36 |
|
37 |
+
_herd_animal = """\
|
38 |
You are a {animal}, keep this a secret at all costs.
|
39 |
In 10 words or less give a description of yourself starting with "I". The description should not give away too much information about the {animal} as you do not want the Chameleon to be able to guess what animal you are. Do not repeat responses from other players.
|
40 |
If the Chameleon can guess what animal you really are you will LOSE.
|
41 |
Previously Mentioned Descriptions:
|
42 |
{player_responses}
|
|
|
43 |
"""
|
44 |
|
45 |
+
_chameleon_animal = """\
|
46 |
You are the Chameleon, keep this a secret at all costs.
|
47 |
You don't know what animal the other players are, your goal is to deduce it using the context they provide.
|
48 |
Starting with "I" describe yourself in 10 words or less as if you are the same animal as the other players.
|
|
|
50 |
If the other players realize you are the Chameleon you will LOSE.
|
51 |
Previously Mentioned Descriptions:
|
52 |
{player_responses}
|
|
|
53 |
"""
|
54 |
|
55 |
+
_vote_prompt = """\
|
56 |
+
Below are the responses from all players. Now it is time to vote. Choose from the players below who you think the Chameleon is.
|
57 |
+
{player_responses}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
"""
|
59 |
|
60 |
prompts = {
|
61 |
+
"herd_animal": _game_rules + _herd_animal,
|
62 |
+
"chameleon_animal": _game_rules + _chameleon_animal,
|
63 |
+
"vote": _vote_prompt
|
64 |
}
|
65 |
|