Write a javaScript program that simulates a slot machine. There are 4 possible symbols across 3 slots. If all three symbols are the same the player wins a prize. The BAR symbol acts as a wild card (e.g. any symbol and 2 BARs wins; any pair of symbols and a BAR wins).
To replay the game the player refreshes the page. So this task does not require to to access the DOM
The required images are here:




You may rename the images if you wish. (This might make things easier)
This movie shows the game being played.
Save the html file with your name (e.g dandeman.html) and put it and the images you use in a folder that is also called after your name (e.g. dandeman). Do not leave the room until Colin has confirmed that he has a copy of your program.
This is an open book exam. You may use online resources and notes. However you may not communicate with any other person during the assessment. You may not check your e-mail, use your phone, nor use any chat programs.