Attempt at the Google Hash Code 2020 Qualification Round with my colleague Nicola.
Originally written in Kotlin, this version is a rewrite in Ruby with further improvements, which scored a total of 26,177,964 points during the Extended Round, just slightly more than a million points from the winner of the Qualification Round.
The original version scored 15,532,608 points in the Qualification Round, ranking us 5,326th among 10,724 teams; this makes this version a definite improvement from the original.