We're going to simulate some games of Yahtzee. In this simplified version of Yahtzee, our goal is only to get all five dice to be the same number, which is a Yahtzee. In the average game, you have three rolls to attempt this. Each roll, you can lock certain dice, and only reroll the other ones. This simulation has an algorithm to automatically determine which dice to lock, and which to re-roll. It bases these decisions with the goal in mind of getting a Yahtzee. In this simulator, we will run 100 - 1000 games to get an accurate idea of how easy it is to get a Yahtzee. We can then get a fairly high number of Yahtzees, i.e. 50 Yahtzees in 1000 games. But it doesn't end there. This simulator is trying to get a graph of "Yahtzees per 1000 (or 100) games," with the independent variable being the number of rolls in a game, which we will change instead of leaving at a static three. As we will see in this simulation, the number of Yahtzees drastically increases with the number of rolls allowed. This simulator will run several "supertrials," or sets of 100-1000 games. The number of rolls will increase with each supertrial, giving us the graph. Ready? Click space to begin. Turbo mode strongly reccomended! (For people new to scratch, you can enable turbo mode by shift-clicking on the green flag.)
Draws graph of how number of rolls affects probability of a Yahtzee. A tiny bit buggy, just hit green flag if it messes up. Enjoy! v1.21: Minor adjustments. v1.2b: Number of dice made a variable. v1.1: Added accurate percent complete variable (top right), renamed from Yahtzee - Supertrial Version v1.02: Fixed typos, minor stuff, etc. v1.01: Minor update.