Skip to content

cdalvaro/advent-of-code-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Ruby

Advent of Code

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.rb to 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 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 to create the basic files for the puzzle.

bin/create-files.rb --day 25 [--year=2024] [--force]

Run Tests

Tests are written using the minitest framework.

To run the tests, simply run the following command:

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 🌟🌟