This is my try on the Advent of code of 2023 challanges in Python. I've decided to use Python because I've always wanted to learn it since everyone seems to really like it and also because I need it for some classes in University.
- Day 1 - Trebuchet?!: ⭐⭐
- Day 2 - Cube Conundrum: ⭐⭐
- Day 3 - Gear Ratios: ⭐⭐
- Day 4 - Scratchcards: ⭐⭐
- Day 5 - If You Give A Seed A Fertilizer: ⭐⭐
- Day 6 - Wait For It: ⭐⭐
- Day 7 - Camel Cards: ⭐⭐
- Day 8 - Haunted Wasteland: ⭐⭐
- Day 9 - Mirage Maintenance: ⭐⭐
- Day 10 - Pipe Maze: ⭐⭐
- Day 11 - Cosmic Expansion: ⭐⭐
- ...
- Day 15 - Lens Library: ⭐⭐
- ...
- Day 19 - Aplenty: ⭐
- ...
days: the code for each day will be in the days folder as adayX.pyfile.inputs: all my input data for each day is saved the inputs folder as ainputX.txtfile. I also have atest.txtfile, that I use for the example input of each days puzzle.helpers: contains myhelpers.pyandtemplate.pyfiles. The helper files has some functions to read the input data an I am pretty sure, I will add some other helping functions if I see that puzzles will need some generic functionality more than once. And the template file is my base for every days puzzle.
Simply run the wanted days file with python. (I used python 3.11)
This for example runs day1:
python .\days\day1.py
For any other wanted day just simply exchange the 1 with the day's number!