1) Click green flag until all three numbers show 2) Click lever until you run out of money 3) Enjoy
A simple slot machine. Made by me. Inspired by my Programming teacher. It'll take about 678 spins, on average, to go bankrupt (based on a sample size of running the program 10,000 times and taking the total number of spins then putting those numbers into an array and getting the average). Link here: http://pasted.co/ae96f201 Getting all numbers the same or consecutive numbers (1,2,3 or 3,2,1): +10 money Spinning: -2 money Change Log: Update v1.02 - added consecutive numbers and different songs (12/16/14) Update v1.03 - added a "What's playing?" feature (12/17/14) Update v1.04 - added Wins, Loses, win/loss ratio, and Bankruptcies (12/25/2014) Update v1.05 - balanced the rewards due to running simulation after simulation after simulation. Loss ratio is now calculated and displayed correctly. You now lose 2 coins regardless of whether or not you win. Fixed a bug where you would get game over after going down to 0 money but you would have won that spin so you still had a chance. (1/18/2018)