My solutions in Ruby for the puzzles at adventofcode.com.
SPOILER ALERT! Don't read the code in the lib
directory if you haven't already solved the puzzles yourself.
To print a puzzle's answer(s), run the source file: ruby lib/2015/day-1-not-quite-lisp.rb
. Note that this will use my
personalized input data, which is probably different from yours.
Run all the tests with rake
. Or run a single test file with rake TEST=test/2015/test-day-1-not-quite-lisp
.
Copyright (C) 2015,2023 Doug Orleans
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.