https://github.com/quentin18/advent-of-code
:christmas_tree: My Advent of Code solutions
https://github.com/quentin18/advent-of-code
advent-of-code
Last synced: 8 months ago
JSON representation
:christmas_tree: My Advent of Code solutions
- Host: GitHub
- URL: https://github.com/quentin18/advent-of-code
- Owner: Quentin18
- License: mit
- Created: 2023-11-30T22:09:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-27T18:20:09.000Z (about 1 year ago)
- Last Synced: 2025-02-17T07:35:44.458Z (11 months ago)
- Topics: advent-of-code
- Language: Python
- Homepage: https://adventofcode.com/
- Size: 368 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎄 Advent of Code 🎄
[](https://github.com/Quentin18/advent-of-code/actions/workflows/build.yml)
[](https://pre-commit.com/)
[](https://github.com/psf/black)
[](https://pycqa.github.io/isort/)
[](https://github.com/Quentin18/advent-of-code)
This repository contains my Python solutions to the [Advent of Code](https://adventofcode.com/) puzzles.
## Installation
Clone the repository:
```bash
git clone https://github.com/Quentin18/advent-of-code.git
```
Move to the root of the repository:
```bash
cd advent-of-code/
```
Install the dependencies:
```bash
pip install -r requirements.txt
```
## Usage
- The repository contains **one folder per year**.
- For each year, there is **one folder per day** named `day[xx]`.
- For each day, the following files are present:
- Test input in `input_test.txt`
- Puzzle input in `input.txt`
- Script to solve part 1 in `part1.py`
- Script to solve part 2 in `part2.py`
### Run a solution
Move in the directory of the puzzle day (example with day 1 of 2023):
```bash
cd 2023/day01/
```
Run the `part1.py` script to get the solution of the first part:
```bash
python part1.py
```
Run the `part2.py` script to get the solution of the second part:
```bash
python part2.py
```
### Make a new day
To make the folder for a new day, use the `make_new_day.sh` script (example with day 1 of 2023):
```bash
./make_new_day.sh 2023/day01
```
## Author
[Quentin Deschamps](mailto:quentindeschamps18@gmail.com)
## License
[MIT](https://choosealicense.com/licenses/mit/)