For my assignment I have to put make a card memory game that allows you to click on a button to reveal a card, and then click on another button to reveal a card. If the cards match then the you get a score of three points, if they dont they are both turned upside down again and you lose a point.
The main problem that I am having is that I dont know how to assign a value and an image to each card for the score.
Any suggestions?
Create a class
Cardwhich has properties –imageand some identifier. When two cards are revealed compare the identifiers and add+3points if they match, otherwisde add-1points.