Commit 4333dbfb authored by Adam Blank's avatar Adam Blank
Browse files

Update scripts.py

parent ddeeb514
No related merge requests found
Showing with 22 additions and 1 deletion
+22 -1
......@@ -22,6 +22,16 @@ SCRIPTS = [
def role_script(role):
"""
This function generates a script for the announcer to use
for a particular role in a game of one-night werewolf.
Args:
role (str): A string representing a "role" in one-night werewolf
Returns:
str: The text of the script for the provided role
"""
if role in ROLES:
for i in range(len(ROLES)):
if ROLES[i] == role:
......@@ -30,7 +40,18 @@ def role_script(role):
def close_eyes_script(role):
return role + ", close your eyes."
"""
This function generates a script for the announcer to use
to tell a particular role to close their eyes
in a game of one-night werewolf.
Args:
role (str): A string representing a "role" in one-night werewolf
Returns:
str: The text of the script for the provided role.
"""
return role + ", close your eyes."
GO_TO_SLEEP_SCRIPT = "Everyone, Close your eyes!"
WAKE_UP_SCRIPT = "Everyone, Wake up!"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment