Question: For this problem, your task is to create a new figure to represent the game area for Matlab Memory Match and show text in one
For this problem, your task is to create a new figure to represent the game area for Matlab Memory Match and show text in one of four pseudorandomly selected locations to represent a color being selected by the game. Please use the code in the project description document to first create the game play area.
Then, pseudorandomly select one of four different areas of the board to indicate a color being selected. Assign a variable named colorchoicea pseudorandom integer between and
For the purposes of this problem you can also use this format in your Project team code submission, if you would like we will say that a
indicates a GREENcolor selection,
indicates a REDcolor selection,
indicates a BLUEcolor selection, and
indicates a YELLOWcolor selection.
If the color selected is GREEN, use the text function to assign the word GREENto the location with a font size of Assign the result of the text function to the variable colortext.
If the color selected is RED, use the text function to assign the word REDto the location with a font size of Assign the result of the text function to the variable colortext.
If the color selected is BLUE, use the text function to assign the word BLUEto the location with a font size of Assign the result of the text function to the variable colortext.
If the color selected is YELLOW, use the text function to assign the word YELLOWto the location with a font size of Assign the result of the text function to the variable colortext.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
