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
fea7fd18
Commit
fea7fd18
authored
2 months ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Delete scripts.py
parent
4333dbfb
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
02/scripts.py
+0
-57
02/scripts.py
with
0 additions
and
57 deletions
+0
-57
02/scripts.py
deleted
100644 → 0
View file @
4333dbfb
ROLES
=
[
"werewolves"
,
"minion"
,
"masons"
,
"seer"
,
"robber"
,
"troublemaker"
,
"drunk"
,
"insomniac"
]
SCRIPTS
=
[
"Werewolves, wake up and look for other Werewolves."
,
"Minion, wake up. Werewolves, stick out your thumb so the Minion can see who you are."
,
"Masons, wake up and look for other Masons."
,
"Seer, wake up. You may look at another player’s card or two of the center cards."
,
"Robber, wake up. You may exchange your card with another player's card, and then view your new card"
,
"Troublemaker, wake up. You may ex- change cards between two other players."
,
"Drunk, wake up and exchange your card with a card from the center."
,
"Insomniac, wake up and look at your card."
]
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
:
return
SCRIPTS
[
i
]
return
None
def
close_eyes_script
(
role
):
"""
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