utilize aoc_ocr
This commit is contained in:
parent
eeafe2a56e
commit
b6e10c9708
4
day01.py
4
day01.py
@ -15,7 +15,7 @@ class Day(AOCDay):
|
||||
|
||||
def part1(self):
|
||||
count = 0
|
||||
depths = self.getInputListAsType(int)
|
||||
depths = self.getInput(int)
|
||||
for x in range(1, len(depths)):
|
||||
if depths[x] > depths[x-1]:
|
||||
count += 1
|
||||
@ -24,7 +24,7 @@ class Day(AOCDay):
|
||||
|
||||
def part2(self):
|
||||
count = 0
|
||||
depths = self.getInputListAsType(int)
|
||||
depths = self.getInput(int)
|
||||
|
||||
for x in range(3, len(depths)):
|
||||
if depths[x] > depths[x-3]:
|
||||
|
||||
5
day13.py
5
day13.py
@ -37,7 +37,7 @@ class Day(AOCDay):
|
||||
(701, "input13")
|
||||
],
|
||||
[
|
||||
("see image above", "input13")
|
||||
("FPEKBEJL", "input13")
|
||||
]
|
||||
]
|
||||
|
||||
@ -59,8 +59,7 @@ class Day(AOCDay):
|
||||
direction, axis = thisFold.split()[-1].split("=")
|
||||
fold(grid, direction, int(axis))
|
||||
|
||||
grid.print(true_char='#')
|
||||
return "see image above"
|
||||
return grid.get_aoc_ocr_string()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user