Question
***Answer in MIPS/MARS Assembly Language** Add a visible turn counter display to the last line of the screen. Update it after each turn. Add a
***Answer in MIPS/MARS Assembly Language**
Add a visible turn counter display to the last line of the screen. Update it after each turn.
Add a timer to turn cards back face-down after they have been exposed for 2 seconds, if the user hasn't clicked on a card. This involves expanding the polling loop to look for timeouts. (or for our graduate students, using callback rouines.)
Track the number of pairs matched to determine when the game is over. Display a Win message.
Delete all the cards, when the game is over. Clear the mouse Map and the shuffle array.
Add a timer to show the number of seconds passed since the game started on the bottom of the display. It should stop when the game is over.
Add two "buttons" to the bottom line:
For a "knock-your-socks-off" extra-credit add on: Use a read/write file to track high scores (low times and low turn-counts) for each level of the game. Display the best 5 scores for each level. Ask the user for their name if they get on the list.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started