Programming a Slot Machine
Let's practice what we have learned so far and implement a simple game.
We'll cover the following...
We’ll practice a bit, sum up everything we’ve learned so far, and implement a simple one-armed bandit game. We will put some money in the bank, pull the handle, and see what happens.
Outline
Let’s outline our plan. Variable balance
will represent the amount of money we have in the bank. We’ll have three slot reels and a few images. ...