Skip to content
GitLab
Menu
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
ddeeb514
"git@gitlab.caltech.edu:cs24-19fa/git_rec_nano.git" did not exist on "776cf3771d57cc440dc1906b5335761e1991f01d"
Commit
ddeeb514
authored
2 months ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Add new file
parent
2e09579b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
02/scripts.py
+36
-0
02/scripts.py
with
36 additions
and
0 deletions
+36
-0
02/scripts.py
0 → 100644
View file @
ddeeb514
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
):
if
role
in
ROLES
:
for
i
in
range
(
len
(
ROLES
)):
if
ROLES
[
i
]
==
role
:
return
SCRIPTS
[
i
]
return
None
def
close_eyes_script
(
role
):
return
role
+
", 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