From 60e711c67e4d8e5f4af5bc44a057a953b4f8eeb2 Mon Sep 17 00:00:00 2001 From: qbc Date: Mon, 5 Feb 2024 10:46:58 +0800 Subject: [PATCH] refine prompt for werewolf game (#21) --- examples/werewolf/prompt.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/examples/werewolf/prompt.py b/examples/werewolf/prompt.py index ed454de44..c36291973 100644 --- a/examples/werewolf/prompt.py +++ b/examples/werewolf/prompt.py @@ -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' @@ -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' @@ -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' @@ -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' @@ -50,8 +50,8 @@ 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' @@ -59,7 +59,7 @@ class Prompts: "}}" ) - 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, " @@ -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" @@ -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'