For the Oqton Hackaton 2022-05-25 CTF 🏴☠️
In Ruby, because Thijs hadn't received a Ruby solution yet ;)
./run.rb
RSpec tests in spec/taxi_spec.rb
To run the tests, run rspec spec/taxi_spec.rb
(if you don't have rspec
yet, please run bundle install
).
Also passes all Rubycop tests.
Requires Ruby >= 2.6 (for the 1.. array slice on line 28 in taxi.rb).