minor refactor
This commit is contained in:
@@ -84,11 +84,7 @@ class Match(object):
|
|||||||
|
|
||||||
def solve1(lines):
|
def solve1(lines):
|
||||||
total = 0
|
total = 0
|
||||||
limits = {
|
limits = dict(zip(COLORS, [12, 13, 14]))
|
||||||
'red': 12,
|
|
||||||
'green': 13,
|
|
||||||
'blue': 14,
|
|
||||||
}
|
|
||||||
for l in lines:
|
for l in lines:
|
||||||
game = Game(l)
|
game = Game(l)
|
||||||
if game.possible_for_limits(limits):
|
if game.possible_for_limits(limits):
|
||||||
|
Reference in New Issue
Block a user