Skip to content

Commit

Permalink
refine prompt for werewolf game (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
qbc2016 authored Feb 5, 2024
1 parent ad54862 commit 60e711c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions examples/werewolf/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class Prompts:
"""Prompts for werewolf game"""

to_wolves = (
"{}, you are werewolves. If you are alone, eliminate a player, else "
"discuss with your teammates and reach an agreement. Response in the "
"{}, if you are the only werewolf, eliminate a player. Otherwise, "
"discuss with your teammates and reach an agreement. Respond in the "
"following format which can be loaded by python json.loads()\n"
"{{\n"
' "thought": "thought",\n'
Expand All @@ -18,7 +18,7 @@ class Prompts:
)

to_wolves_vote = (
"Which player do you vote to kill? Response in the following format "
"Which player do you vote to kill? Respond in the following format "
"which can be loaded by python json.loads()\n"
"{{\n"
' "thought": "thought" ,\n'
Expand All @@ -29,9 +29,9 @@ class Prompts:
to_wolves_res = "The player with the most votes is {}."

to_witch_resurrect = (
"{witch_name}, you're witch. Tonight {dead_name} is eliminated. Would "
"you like to resurrect {dead_name}? Response in the following format "
"which can be loaded by python json.loads()\n"
"{witch_name}, you're the witch. Tonight {dead_name} is eliminated. "
"Would you like to resurrect {dead_name}? Respond in the following "
"format which can be loaded by python json.loads()\n"
"{{\n"
' "thought": "thought",\n'
' "speak": "thoughts summary to say",\n'
Expand All @@ -40,7 +40,7 @@ class Prompts:
)

to_witch_poison = (
"Would you like to eliminate one player? Response in the following "
"Would you like to eliminate one player? Respond in the following "
"json format which can be loaded by python json.loads()\n"
"{{\n"
' "thought": "thought", \n'
Expand All @@ -50,16 +50,16 @@ class Prompts:
)

to_seer = (
"{}, you're seer. Which player in {} would you like to check "
"tonight? Response in the following json format which can be loaded "
"{}, you're the seer. Which player in {} would you like to check "
"tonight? Respond in the following json format which can be loaded "
"by python json.loads()\n"
"{{\n"
' "thought": "thought" ,\n'
' "speak": "player_name"\n'
"}}"
)

to_seer_result = "Okay, the role of {} is {}."
to_seer_result = "Okay, the role of {} is a {}."

to_all_danger = (
"The day is coming, all the players open your eyes. Last night, "
Expand All @@ -76,7 +76,7 @@ class Prompts:
"based on the "
"situation and the information you gain, to vote a player eliminated "
"among alive players and to win the game, what do you want to say "
"to others? You can decide whether to reveal your role. Response in "
"to others? You can decide whether to reveal your role. Respond in "
"the following JSON format which can be loaded by python json.loads("
")\n"
"{{\n"
Expand All @@ -87,11 +87,11 @@ class Prompts:

to_all_vote = (
"Now the alive players are {}. Given the game rules and your role, "
"based on the situation and the information you gain, to vote a "
"player among alive players and to win the "
"game, it's time to vote one player among the alive players, please "
"cast your vote on who you believe is a werewolf. Response in the "
"following format which can be loaded by python json.loads()\n"
"based on the situation and the information you gain, to win the "
"game, it's time to vote one player eliminated among the alive "
"players, please cast your vote on who you believe is a werewolf. "
"Respond in the following format which can be loaded by python "
"json.loads()\n"
"{{\n"
' "thought": "thought",\n'
' "speak": "player_name"\n'
Expand Down

0 comments on commit 60e711c

Please sign in to comment.