This repository contains my approaches to solve the puzzles of the Advent of Code, written in Ruby and developed test-first.
2023/–2026/: one directory per year, one subdirectory per day, e.g.2025/Day_11_Reactor/.- Each day contains (since 2025):
README.md– the puzzle descriptionsample_input.txt– the example from the descriptioninput.txt– my personal puzzle inputlib/– the implementationtest/– Minitest tests<puzzle>.rb– script that prints the answers for sample and puzzle input
CLAUDE.md– conventions for commit messages
- Ruby (currently 4.0). Minitest ships with Ruby as a bundled gem, so nothing else needs to be installed. If it is missing anyway, install it with
gem install minitest.
Run the tests of a day:
ruby 2025/Day_11_Reactor/test/graph_test.rb
Compute the answers:
ruby 2025/Day_11_Reactor/reactor.rb