My template for AoC in Python.
| .gitignore | Actualiser .gitignore | |
| LICENSE | Initial commit | |
| Makefile | Téléverser les fichiers vers "/" | |
| README.md | Actualiser README.md | |
| template.py | Téléverser les fichiers vers "/" | |
AoC-python-template
My template for AoC in Python.
How to use
Setup
First, config your settings with:
make config
Enter the year of the Advent of Code you want, and if you want your cookie session from AoC website for auto-download input.
New day
Now, you can create a new daily solution by typing:
make day.<number>
By replacing number by the day, or just make day for the actual day.
Check your solution
You can check your solution by entering:
make <number>
Use make without number will check all solutions.
How it is structured
Each day had one directory named with the day number with no leading 0.
In this directory, we had three files :
input.txtthe puzzlesolve.pythe main codesolutionthe correct output of your code
The file input.txt can be auto-download when creating day solution.
The solution need to be made by you with the correct answer.
The solve.py file contain the code and is based on template.py file.
The solve.py
In this file, we had three needed functions:
solve()solve1()solve2()To be continued...