Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs1-25sp
lecture-code
Commits
4333dbfb
Commit
4333dbfb
authored
2 months ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Update scripts.py
parent
ddeeb514
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
02/scripts.py
+22
-1
02/scripts.py
with
22 additions
and
1 deletion
+22
-1
02/scripts.py
View file @
4333dbfb
...
...
@@ -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!"
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help