minor refactor

This commit is contained in:
Dmitry Fedotov
2023-12-09 13:04:36 +03:00
parent e9103ef008
commit 7fcf650d6e

View File

@@ -84,11 +84,7 @@ class Match(object):
def solve1(lines):
total = 0
limits = {
'red': 12,
'green': 13,
'blue': 14,
}
limits = dict(zip(COLORS, [12, 13, 14]))
for l in lines:
game = Game(l)
if game.possible_for_limits(limits):