@@ -178,23 +178,23 @@ def tftGizmoPresent():
178
178
IMAGE_DIR = "rps/images"
179
179
AUDIO_DIR = "rps/audio"
180
180
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" ))
187
187
188
188
gc .collect ()
189
189
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
193
193
gc .collect ()
194
194
d_print (2 , "GC after SJ" , gc .mem_free ())
195
195
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
198
198
WAV_VICTORY_NAME = { "rp" : "paper-rock" ,
199
199
"pr" : "paper-rock" ,
200
200
"ps" : "scissors-paper" ,
0 commit comments