day18: we should keep the working version in the repo

This commit is contained in:
Stefan Harmuth 2021-12-25 06:50:13 +01:00
parent d308a1df4d
commit d4715de60c

View File

@ -217,8 +217,8 @@ class Day(AOCDay):
test_solutions_p2 = [3993, 4796] test_solutions_p2 = [3993, 4796]
def part1(self) -> Any: def part1(self) -> Any:
#snailfishes = [Snailfish(x) for x in self.getInput()] snailfishes = [Snailfish(x) for x in self.getInput()]
snailfishes = [BinarySnailfish(json.loads(x)) for x in self.getInput()] #snailfishes = [BinarySnailfish(json.loads(x)) for x in self.getInput()]
return sum(snailfishes[1:], start=snailfishes[0]).getMagnitude() return sum(snailfishes[1:], start=snailfishes[0]).getMagnitude()
def part2(self) -> Any: def part2(self) -> Any: