Solve day 2

This commit is contained in:
Nettika
2023-12-09 10:09:28 -08:00
parent cfa52e1594
commit c22f0e8eba
6 changed files with 297 additions and 0 deletions

14
02/__main__.py Normal file
View File

@@ -0,0 +1,14 @@
from pathlib import Path
from puzzle import solve_pt_1, solve_pt_2
def main():
input = Path(__file__).parent.joinpath("games.txt").read_text().strip().split("\n")
print("Sum of IDs of Valid Games:")
print("Part 1 -", solve_pt_1(input))
print("Part 2 -", solve_pt_2(input))
if __name__ == "__main__":
main()