Home - Vinniethatguy/UMKCCS101Labs GitHub Wiki
Welcome to the UMKCCS101Labs wiki! In this program you are going to simulate a slot machine in Pierson Hall. The slot machine has 3 reels and each reel will have numbers ranging from 1 to 10. The user can choose how many chips they start out with. They are allowed to wager between 1 to the amount of bank they currently have on each spin. If they match 3 numbers, they will win 10 times their wager. If they match 2 numbers they will win 3 times their wager.
We're using a lot of functions to run this code, starting off with a play_again function, which will as a user if they want to play again. The get_wager will ask the user for their wager amount, the wager has to be between 0 and their wager.The get matches function will return the 3 slot values and return their winnings based on how many numbers are the same. The multiplier kicks in when the user has 3 numbers that are the same.