1
0
Fork
You've already forked AoC-python-template
0
My template for AoC in Python.
  • Makefile 70.8%
  • Python 29.2%
2023年12月03日 14:36:44 +00:00
.gitignore Actualiser .gitignore 2023年12月03日 14:22:07 +00:00
LICENSE Initial commit 2023年12月03日 14:20:34 +00:00
Makefile Téléverser les fichiers vers "/" 2023年12月03日 14:21:17 +00:00
README.md Actualiser README.md 2023年12月03日 14:36:44 +00:00
template.py Téléverser les fichiers vers "/" 2023年12月03日 14:21:17 +00:00

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.txt the puzzle
  • solve.py the main code
  • solution the 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...