Slots Simulation Page
CSC 121 - Creighton University - Spring 2020

This page will simulate repeated slots games. Recall that under our rules, each spin of the slots costs the player one credit. If all three slots turn up identical, the player wins 13 credits (for a net gain of 12 credits).

For this simulation, the user can specify two parameters: the initial number of credits per game and the number of spins per game. At the click of the button, 100,000 games are simulated using these parameters and the average number of credits lost per game is displayed.

Starting credits for each game:
Number of spins per game: