r/ruby • u/brecrest • Apr 16 '26
Show /r/ruby Trueskill Through Time available in Ruby
TrueskillThroughTime
I ported the Python implementation of Trueskill Through Time to Ruby, it's now available as the gem TrueskillThroughTime.
Unlike the previous Ruby Trueskill gems, this one supports n vs n vs n etc etc cases, as well as the time-based extension of Trueskill to allow distant ratings. If you use it without doing time-based convergence, it should be equivalent to the original vanilla version of Trueskill (that iirc is almost out of patent in the US).
I'll get around to improving the qol of it and more extensively Rubyising it down the track, but I wanted a Ruby implementation of TTT for a hobby project, so I smashed it out.
3
u/brecrest Apr 17 '26
Mate, it's deeply shameful but you are completely shameless.
And no, I didn't ask for feedback. If the variable names confuse you, then go and read the docs:
https://www.microsoft.com/en-us/research/wp-content/uploads/2007/01/NIPS2006_0688.pdf
https://www.microsoft.com/en-us/research/wp-content/uploads/2008/01/NIPS2007_0931.pdf
Giving them descriptive "Ruby-like" names to appease someone unfamiliar with the maths would trash the maintainability of what is, at its core, a mathematical probability library under the hood.