Solve day 7

This commit is contained in:
Nettika
2023-12-12 22:35:04 -08:00
parent d36993c895
commit 2cd901b1de
6 changed files with 1448 additions and 0 deletions

14
07/puzzle_test.py Normal file
View File

@@ -0,0 +1,14 @@
from puzzle import solve
mock_hand_descriptions = [
"32T3K 765",
"T55J5 684",
"KK677 28",
"KTJJT 220",
"QQQJA 483",
]
def test_solve():
assert solve(mock_hand_descriptions, False) == 6440
assert solve(mock_hand_descriptions, True) == 5905