Implement 2024 day 14

This commit is contained in:
2024-12-14 09:07:45 +01:00
parent c8ab67d145
commit 4a7305d7eb
3 changed files with 92 additions and 0 deletions

12
2024/tests/samples/14.txt Normal file
View File

@@ -0,0 +1,12 @@
p=0,4 v=3,-3
p=6,3 v=-1,-3
p=10,3 v=-1,2
p=2,0 v=2,-1
p=0,0 v=1,3
p=3,0 v=-2,-2
p=7,6 v=-1,-3
p=3,0 v=-1,-2
p=9,3 v=2,3
p=7,3 v=-1,2
p=2,4 v=2,-3
p=9,5 v=-3,-3

7
2024/tests/test_day14.py Normal file
View File

@@ -0,0 +1,7 @@
from aoc.days.day14 import DayRunner
from . import get_data
def test_sample_part1() -> None:
assert DayRunner.part1(get_data(14), width=11, height=7) == 12