Skip to content

Commit ea82f2b

Browse files
author
Kevin J Walters
committed
Renaming files to a more specific audio_files.
Removing error_output in SampleJukebox constructor as it is no longer used (exception now lists all missing files).
1 parent a295bc4 commit ea82f2b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

CLUE_Rock_Paper_Scissors/advanced/clue-multi-rpsgame.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,23 +178,23 @@ def tftGizmoPresent():
178178
IMAGE_DIR = "rps/images"
179179
AUDIO_DIR = "rps/audio"
180180

181-
files = (("searching", "welcome-to", "arena", "ready")
182-
+ ("rock", "paper", "scissors")
183-
+ ("start-tx", "end-tx", "txing")
184-
+ ("rock-scissors", "paper-rock", "scissors-paper")
185-
+ ("you-win", "draw", "you-lose", "error")
186-
+ ("humiliation", "excellent"))
181+
audio_files = (("searching", "welcome-to", "arena", "ready")
182+
+ ("rock", "paper", "scissors")
183+
+ ("start-tx", "end-tx", "txing")
184+
+ ("rock-scissors", "paper-rock", "scissors-paper")
185+
+ ("you-win", "draw", "you-lose", "error")
186+
+ ("humiliation", "excellent"))
187187

188188
gc.collect()
189189
d_print(2, "GC before SJ", gc.mem_free())
190-
sample = SampleJukebox(audio_out, files,
191-
directory=AUDIO_DIR, error_output=True)
192-
del files # not needed anymore
190+
sample = SampleJukebox(audio_out, audio_files,
191+
directory=AUDIO_DIR)
192+
del audio_files # not needed anymore
193193
gc.collect()
194194
d_print(2, "GC after SJ", gc.mem_free())
195195

196-
# A lookup table in Dict form for win/lose
197-
# does not need to cater for draw condition
196+
# A lookup table in Dict form for win/lose, each value is a sample name
197+
# Does not need to cater for draw (tie) condition
198198
WAV_VICTORY_NAME = { "rp": "paper-rock",
199199
"pr": "paper-rock",
200200
"ps": "scissors-paper",

0 commit comments

Comments
 (0)