Write a javaScript program that simulates a game of snap. Two randomly chosen cards are turned over. If the cards match in number then the text "Snap" is displayed. (e.g. Jack of Hearts and Jack of Spades = "Snap"). If the exact same card is displayed twice then the text "Double Snap" is displayed (e.g. (10 of Clubs and 10 of Clubs = "Double Snap").
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.