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 color_choicea pseudorandom integer between 1 and 4.
For the purposes of this problem (you can also use this format in your Project 2 team code submission, if you would like) we will say that a...
1indicates a GREENcolor selection,
2indicates a REDcolor selection,
3indicates a BLUEcolor selection, and
4indicates a YELLOWcolor selection.
If the color selected is GREEN, use the text function to assign the word GREENto the location (2.2,2.5) with a font size of 28. Assign the result of the text function to the variable color_text.
If the color selected is RED, use the text function to assign the word REDto the location (1.325,2.5) with a font size of 28. Assign the result of the text function to the variable color_text.
If the color selected is BLUE, use the text function to assign the word BLUEto the location (1.25,1.5) with a font size of 28. Assign the result of the text function to the variable color_text.
If the color selected is YELLOW, use the text function to assign the word YELLOWto the location (2.15,1.5) with a font size of 28. Assign the result of the text function to the variable color_text.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!