An open API service indexing awesome lists of open source software.

https://github.com/pauloxnet/adventofcode

Pure Python solutions for the Advent of Code puzzles written by Paolo Melchiorre.
https://github.com/pauloxnet/adventofcode

adventofcode python

Last synced: 11 months ago
JSON representation

Pure Python solutions for the Advent of Code puzzles written by Paolo Melchiorre.

Awesome Lists containing this project

README

          

# 🌠 Advent of Code

[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
![Coverage](https://img.shields.io/badge/coverage-100%25-success)
[![Mastodon Follow](https://img.shields.io/mastodon/follow/000129461?domain=https%3A%2F%2Ffosstodon.org)](https://fosstodon.org/@paulox)

Pure Python solutions for the [Advent of Code](https://adventofcode.com/) puzzles written by [Paolo Melchiorre](https://github.com/pauloxnet/).

## 🧩 Requirements

All solutions use only the [Python Standard Library](https://docs.python.org/3/library/index.html) with no need for external packages.

## 🔬 Tests

Tests are included in function docstrings and can be run using the [doctest](https://docs.python.org/3/library/doctest.html) module.

Example:

```shell
$ python3 -m doctest --verbose aoc2024/day01.py
```

## ✨ Solutions

### 🗓️ [2024](https://adventofcode.com/2024)

| Days | Puzzles | Solutions | Parts |
| -------- | --------------------------------------------------------- | --------------------------------------- | -------- |
| 1 | [Historian Hysteria](https://adventofcode.com/2024/day/1) | [`aoc2024/day01.py`](/aoc2024/day01.py) | ⭐⭐ |
| 2 | [Red-Nosed Reports](https://adventofcode.com/2024/day/2) | [`aoc2024/day02.py`](/aoc2024/day02.py) | ⭐⭐ |
| 3 | [Mull It Over](https://adventofcode.com/2024/day/3) | [`aoc2024/day03.py`](/aoc2024/day03.py) | ⭐⭐ |
| 4 | [Ceres Search](https://adventofcode.com/2024/day/4) | [`aoc2024/day04.py`](/aoc2024/day04.py) | ⭐⭐ |
| **4/25** | - | [`aoc2024/`](/aoc2024/) | **8/50** |

### 🗓️ [2023](https://adventofcode.com/2023)

| Days | Puzzles | Solutions | Parts |
| -------- | ---------------------------------------------------------------------- | --------------------------------------- | -------- |
| 1 | [Trebuchet?!](https://adventofcode.com/2023/day/1) | [`aoc2023/day01.py`](/aoc2023/day01.py) | ⭐⭐ |
| 2 | [Cube Conundrum](https://adventofcode.com/2023/day/2) | [`aoc2023/day02.py`](/aoc2023/day02.py) | ⭐⭐ |
| 3 | [Gear Ratios](https://adventofcode.com/2023/day/3) | `aoc2023/day03.py` | |
| 4 | [Scratchcards](https://adventofcode.com/2023/day/4) | [`aoc2023/day04.py`](/aoc2023/day04.py) | ⭐⭐ |
| 5 | [If You Give A Seed A Fertilizer](https://adventofcode.com/2023/day/5) | `aoc2023/day05.py` | ⭐ |
| 6 | [Wait For It](https://adventofcode.com/2023/day/6) | [`aoc2023/day06.py`](/aoc2023/day06.py) | ⭐⭐ |
| **6/25** | - | [`aoc2023/`](/aoc2023/) | **9/50** |

### 🗓️ [2022](https://adventofcode.com/2022)

| Days | Puzzles | Solutions | Parts |
| -------- | -------------------------------------------------------------- | --------------------------------------- | --------- |
| 1 | [Calorie Counting](https://adventofcode.com/2022/day/1) | [`aoc2022/day01.py`](/aoc2022/day01.py) | ⭐⭐ |
| 2 | [Rock Paper Scissors](https://adventofcode.com/2022/day/2) | `aoc2022/day02.py` | ⭐⭐ |
| 3 | [Rucksack Reorganization](https://adventofcode.com/2022/day/3) | [`aoc2022/day03.py`](/aoc2022/day03.py) | ⭐⭐ |
| 4 | [Camp Cleanup](https://adventofcode.com/2022/day/4) | [`aoc2022/day04.py`](/aoc2022/day04.py) | ⭐⭐ |
| 5 | [Supply Stacks](https://adventofcode.com/2022/day/5) | `aoc2022/day05.py` | ⭐⭐ |
| 6 | [Tuning Trouble](https://adventofcode.com/2022/day/6) | [`aoc2022/day06.py`](/aoc2022/day06.py) | ⭐⭐ |
| **6/25** | - | [`aoc2022/`](/aoc2022/) | **12/50** |

## ⚖️ License

This repository is licensed under the [GPL-3.0](/LICENSE.md) license.

## 👥 Authors

### 👤 Paolo Melchiorre

- 🌍 Blog: [www.paulox.net](https://www.paulox.net)
- 🐙 Github: [@pauloxnet](https://github.com/pauloxnet)
- 🦣 Mastodon: [@paulox@fosstodon.org](https://fosstodon.org/@paulox)
- 🐦️ Twitter: [@pauloxnet](https://twitter.com/pauloxnet)