Skip to content

Commit d935c27

Browse files
committed
Undefined variable bigfix
1 parent 0957d15 commit d935c27

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

jeopardy.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def do_final_jeopardy(screen, player_names, scores):
144144
screen, config.get("core", "final_category"), FINAL_STATE_CATEGORY,
145145
player_names, scores )
146146
run_until_space(screen)
147-
147+
148148
question = \
149149
open(config.get("core", "final_question_file")).readline().strip()
150150
answer = open(config.get("core", "final_answer_file")).readline().strip()
@@ -288,7 +288,7 @@ def run_questions_menu(screen, questions, answered_questions, player_names,
288288
make_player_scores(player_names, scores) )
289289

290290
def run_question(
291-
screen, category, question, answer, is_dd, question_score,
291+
screen, category, question, answer, is_dd, question_score,
292292
selected_question, answered_questions, player_names, scores,
293293
daily_doubles, answer_server):
294294

@@ -351,7 +351,8 @@ def run_question(
351351

352352
else:
353353
run_buzzin_attempts(screen, question, answer, question_score,
354-
answered_questions, player_names, scores)
354+
answered_questions, player_names, scores,
355+
daily_doubles)
355356
return True
356357

357358
elif event == ord(" "):
@@ -389,7 +390,7 @@ def main(screen):
389390
# get the buzzed in player name
390391
def run_buzzin_attempts(
391392
screen, question, answer, question_score,
392-
answered_questions, player_names, scores):
393+
answered_questions, player_names, scores, daily_doubles):
393394
state = QUESTION_PRE_BUZZ # was QUESTION_PRE_BUZZ_EXIT until now
394395
state_start_time = time.time()
395396

@@ -502,10 +503,10 @@ def generate_daily_double_positions(questions):
502503
# many times.
503504
# Multiplying a tuple by a constant int is fun!
504505
# As is correctly making the arguments to range
505-
daily_double_distrib.extend(
506+
daily_double_distrib.extend(
506507
tuple(range(
507508
len(DAILY_DOUBLE_ROW_STATISTIC),
508-
len(DAILY_DOUBLE_ROW_STATISTIC) +
509+
len(DAILY_DOUBLE_ROW_STATISTIC) +
509510
num_rows - len(DAILY_DOUBLE_ROW_STATISTIC),
510511
) )
511512
* DAILY_DOUBLE_ROW_STATISTIC[-1] # last statistic

0 commit comments

Comments
 (0)