OOQQ / oneRollYahtzee

There is a one in 1,296 achieving a one-roll Yahtzee.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yahtzee.js

Inspired by this Numerophile video, I created this script that removes all the time-consuming work, and leaves you with the data you are looking for.

A week after completion, I realized I could archieve the same thing comparing two random numbers:

  • If there's a 1 in 1296 to get a one roll yahtzee, then a one roll yahtze is equal to get a lucky number in 1296.

Which eliminates the need of manage, count, store and sort and everything else. The line count went down from 106 to 6 (94.3% smaller). That's what you'll find in compressed.js

About

There is a one in 1,296 achieving a one-roll Yahtzee.


Languages

Language:JavaScript 73.3%Language:C 21.2%Language:Lua 5.5%