https://github.com/cdalvaro/advent-of-code-ruby
🎄💎 Advent of Code in Ruby
https://github.com/cdalvaro/advent-of-code-ruby
advent-of-code advent-of-code-2023 advent-of-code-2024 challenges puzzles ruby
Last synced: 10 months ago
JSON representation
🎄💎 Advent of Code in Ruby
- Host: GitHub
- URL: https://github.com/cdalvaro/advent-of-code-ruby
- Owner: cdalvaro
- License: mit
- Created: 2023-12-06T19:24:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-27T20:16:39.000Z (11 months ago)
- Last Synced: 2025-08-28T05:01:47.801Z (11 months ago)
- Topics: advent-of-code, advent-of-code-2023, advent-of-code-2024, challenges, puzzles, ruby
- Language: Ruby
- Homepage: https://adventofcode.com
- Size: 696 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code
This repo contains my solutions to the [Advent of Code](https://adventofcode.com) challenges, written in
the [Ruby](https://www.ruby-lang.org) programming language.
The project is structured as follows:
- A script [`bin/create-files.rb`](bin/create-files.rb) to create the basic files for a new puzzle.
- A library, located in the [`lib/`](lib) directory, containing the code for the solutions.
- A set of tests, located in the [`test/`](test) directory, containing the tests for the solutions.
- The [`sig`](sig) directory, which contains the signatures of the project.
## Create Files
When starting a new puzzle, you can use the script [`bin/create-files.rb`](bin/create-files.rb) to create the basic files for the puzzle.
```bash
bin/create-files.rb --day 25 [--year=2024] [--force]
```
## Run Tests
Tests are written using the [minitest](https://github.com/minitest/minitest) framework.
To run the tests, simply run the following command:
```bash
bundle install
bundle exec rake test
```
Some 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`.
## Solved Puzzles
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
🌟🌟

