Skip to content

Commit

Permalink
[HOTFIX] Fix typo and improve prompt in werewolf game (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
qbc2016 authored May 24, 2024
1 parent 539d962 commit 7995c4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion examples/game_werewolf/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ class Prompts:
keys_to_metadata=["resurrect"],
)

to_witch_poison = "Would you like to eliminate one player?"
to_witch_poison = (
"Would you like to eliminate one player? If yes, "
"specify the player_name."
)

witch_poison_parser = MarkdownJsonDictParser(
content_hint={
Expand Down
2 changes: 1 addition & 1 deletion examples/game_werewolf/werewolf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def main() -> None:
),
)
set_parsers(witch, Prompts.witch_resurrect_parser)
if witch(hint).metadata.get("recurrent", False):
if witch(hint).metadata.get("resurrect", False):
healing_used_tonight = True
dead_player.pop()
healing = False
Expand Down

0 comments on commit 7995c4c

Please sign in to comment.