This is Pufe's solution to Matt Parker's Maths Puzzles #3 as mentioned on video https://youtu.be/JaXo_i3ktwM
It's a simple ruby program to test every letter combination and find out how many scrabble hands have exactly 46 points total
I'm neither good enough at Maths to find a clever way of counting, nor patient enough to do it by hand.
You need a ruby interpreter (MacOS usually comes with one) and then run on the command line:
ruby mpmp3.rb < mpmp3.in
I've made the program accept an file describing the tiles, in the format on the website https://think-maths.co.uk just in case someone wants to try with a different language Scrabble Set.
Sure, the code is given as is, you may do whatever with it. I provide no guarantee about its safety. If you wanna get legal about it, license is WTFPL .