Skip to content

Commit 777fac4

Browse files
committed
feat(day20): part 2
1 parent a87eb23 commit 777fac4

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

day20/day20.solution.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@ describe('Day 20: Part 1', () => {
1717
drawSolution(input, res as Location)
1818
})
1919
})
20+
21+
describe('Day 20: Part 1', () => {
22+
it('should recursively solve the puzzle', () => {
23+
const input = fs.readFileSync(
24+
path.resolve(process.cwd(), 'day20/input.txt'),
25+
'utf-8',
26+
)
27+
const res = transportingMazeSolver(input, true)
28+
expect(res?.path).toHaveLength(4986)
29+
})
30+
})

day20/test.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)