This repo contains my solutions to the Advent of Code challenges, written in the Ruby programming language.
The project is structured as follows:
- A script
bin/create-files.rbto create the basic files for a new puzzle. - A library, located in the
lib/directory, containing the code for the solutions. - A set of tests, located in the
test/directory, containing the tests for the solutions. - The
sigdirectory, which contains the signatures of the project.
When starting a new puzzle, you can use the script bin/create-files.rb to create the basic files for the puzzle.
bin/create-files.rb --day 25 [--year=2024] [--force]Tests are written using the minitest framework.
To run the tests, simply run the following command:
bundle install
bundle exec rake testSome tests are marked as slow, and they are skipped by default. To run them, you can set the environment variable RUN_SLOW_TESTS to 1.
Advent of Code - 2024
| Day | Solution | Rank |
|---|---|---|
| 1οΈβ£ Historian Hysteria | lib/puzzles/2024/day01 |
ππ |
| 2οΈβ£ Red-Nosed Reports | lib/puzzles/2024/day02 |
ππ |
| 3οΈβ£ Mull It Over | lib/puzzles/2024/day03 |
ππ |
| 4οΈβ£ Ceres Search | lib/puzzles/2024/day04 |
ππ |
| 5οΈβ£ Print Queue | lib/puzzles/2024/day05 |
ππ |
Advent of Code - 2023
| Day | Solution | Rank |
|---|---|---|
| 1οΈβ£ Trebuchet?! | lib/puzzles/2023/day01 |
ππ |
| 2οΈβ£ Cube Conundrum | lib/puzzles/2023/day02 |
ππ |
| 3οΈβ£ Gear Ratios | lib/puzzles/2023/day03 |
ππ |
| 4οΈβ£ Scratchcards | lib/puzzles/2023/day04 |
ππ |
| 5οΈβ£ If You Give A Seed A Fertilizer | lib/puzzles/2023/day05 |
ππ |
| 6οΈβ£ Wait For It | lib/puzzles/2023/day06 |
ππ |
| 7οΈβ£ Camel Cards | lib/puzzles/2023/day07 |
ππ |
| 8οΈβ£ Haunted Wasteland | lib/puzzles/2023/day08 |
ππ |
| 9οΈβ£ Mirage Maintenance | lib/puzzles/2023/day09 |
ππ |
| 1οΈβ£0οΈβ£ The Great Escape | lib/puzzles/2023/day10 |
ππ |
| 1οΈβ£1οΈβ£ Cosmic Expansion | lib/puzzles/2023/day11 |
ππ |

