From 2be2f1185680a3184813d8e764037300ea11a7d2 Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Sat, 10 Dec 2022 15:38:48 +0100 Subject: [PATCH] aoc_ocr --- day10.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/day10.py b/day10.py index fba5137..ea393c5 100644 --- a/day10.py +++ b/day10.py @@ -1,4 +1,5 @@ from tools.aoc import AOCDay +from tools.aoc_ocr import convert_array_6 from typing import Any @@ -10,6 +11,7 @@ class Day(AOCDay): (13180, "input10"), ], [ + ("BJFRHRFU", "input10_dennis"), ("EZFCHJAB", "input10"), ] ] @@ -37,7 +39,7 @@ class Day(AOCDay): return score def part2(self) -> Any: - crt = [[' '] * 40 for _ in range(6)] + crt = [['.'] * 40 for _ in range(6)] cycle = 0 register = 1 @@ -57,9 +59,7 @@ class Day(AOCDay): cycle += 1 register += int(line.split(" ")[-1]) - for l in crt: - print("".join(l)) - return "" + return convert_array_6(crt) if __name__ == '__main__':