project: slot machine
Objective: students will create an event driven game with code organized into methods.
See the slot machine project videos!
Your slot machine should have 3 canvasses, labelled canvas1, canvas2, and canvas3. When you press a button, a random picture (of 6 or 8) should appear in each canvas. Your program should then decide if you have won any money. Your project should include music and sound effects. You will need the following properties:
money as integer
You will need to write the following methods
fillCanvas(c as canvas) -> returns an integer corresponding to the picture displayed
winnings(a as integer, b as integer, c as integer) -> returns an integer of how much money was won.
displayMoney(m as integer) -> no return value.
You may write other methods as necessary, but you need to have at least the ones shown.
Your game should keep track of the money you have. You should start with some amount, and you should lose if you lose it all. A good game will be fun to play and will look good. It will have appropriate sound effects, an icon, etc.