Browse Source

End a bit earlier for efficiency

pull/5/head
Ryan Reed 3 years ago
parent
commit
c3dd5676b7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      puzzles/day04.py

+ 3
- 0
puzzles/day04.py View File

@ -39,6 +39,9 @@ class Bingo:
if self._is_solved(board):
winning_scores.append(self._calculate_score(board, draw))
if not squid_rules:
return winning_scores[0]
try:
game = np.delete(game, index, axis=0)
except IndexError: # I don't understand why this is needed


Loading…
Cancel
Save