The classic game. Players given three randomly rolled numbers compete to see who can find equations using all three numbers for the numbers 1-36 first.
I wrote these scripts after I decided I was a little slow on the head math, so I put the head math on silicon and made Lua crunch numbers for me.
- If you haven't got it already, install
lua. If you've got Linux, that's available with
apt install lua54
or the newest version.1 - Clone the repo or download and extract a release:
git clone https://github.com/beackers/numberknockout --depth 12 - Run
knockout.luawith the three numbers you rolled as the arguments, e.g.
lua knockout.lua 1 2 3
If you have a crazy knockout (fun variations include more than three numbers, trying to reach 1-72, or using negatives), double check that this is going to meet requirements before you use it:
- Script only returns positive, integer numbers.
- Division only "works" when the result is a whole number.
- Using 7+ numbers for the input may crash your computer. For the latest info on how long it takes GitHub supercomputers to run it, check the
testjob in the Actions tab.
Good luck and happy numbering. And don't forget to yell "BLACKOUT!" when you finish all 36! (Or 72.)