Ruby solutions for Advent of Code 2023.
See adventofcode.com for the problem statements and to validate answers.
- Clone the repository using the GitHub web instructions, e.g. by running
git@github.com:kennethsinder/advent-of-code-2023.git
. - Run
bundle install
from the/advent-of-code-2023
directory root. - Run the
srb tc
command from project root to typecheck all Ruby files with Sorbet. - Run
ruby day/3/solution.rb
(substitute 3 for whichever day in December is applicable) to execute the solution oninput.txt
. - Run unit test for a given day with, e.g.
ruby day/3/test.rb
.