Original source downloaded from Vintage Basic
Conversion to Ruby
Converted to Ruby (with tons of inspiration from the Python version) by @marcheiligers
Run ruby amazing.rb
.
Run DEBUG=1 ruby amazing.ruby
to see how it works (requires at least Ruby 2.7).