This repo contains my proposed solutions for the Advent of Code.
If on Linux, you can simply use the Makefile
to setup everything you need. cd
into the folder and then run:
make
It will take care of creating the virtual env, activating it, and installing the required packages.
If on Windows, you will need to create manually the virtual env and then install the requirements. We currently use virtualenv
and pip
:
python -m venv venv
venv\Scripts\activate
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r requirements.txt
In order to run the script to display the solution, please:
- Navigate into the day folder:
cd 2022/Day\ 01/
- Run the script:
python solution.py
.
├── 2021
│ ├── Day 01
│ │ ├── day01.py
│ │ └── input.txt
│ ├── Day 02
│ │ ├── day02.py
│ │ └── input.txt
│ ├── Day 03
│ │ ├── day03.py
│ │ └── input.txt
│ ...
│
├── 2022
│ ├── Day 01
│ │ ├── day01.py
│ │ ├── input.txt
│ │ └── test_input.txt
│ ├── Day 02
│ │ ├── day02.py
│ │ ├── input.txt
│ │ └── test_input.txt
│ ├── Day 03
│ │ ├── day03.py
│ │ ├── input.txt
│ │ └── test_input.txt
│ ...
|
├── .gitignore
├── LICENSE
├── Makefile
├── pyproject.toml
├── README.md
└── requirements.txt