From 7fcf650d6e2143893e920027756d777607dd8ab5 Mon Sep 17 00:00:00 2001 From: Dmitry Fedotov Date: Sat, 9 Dec 2023 13:04:36 +0300 Subject: [PATCH] minor refactor --- day2/day2.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/day2/day2.py b/day2/day2.py index afc33a5..03ca44e 100644 --- a/day2/day2.py +++ b/day2/day2.py @@ -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):