Question: In simple JAVA code make a tile - matching game in the same genre as Tetris. to begin the game, ask the user for the
In simple JAVA code make a tilematching game in the same genre as Tetris. to begin the game, ask the user for the numbers of rows, columns, and types of tiles.During the game, your program must repeat the following steps: Choose and display a tile type from among the first letters of the alphabet. For example, if thereare six tile types, each tile should be A B C D E or F selected independently at random withan equal probability of each letter Display the current tile grid. The grid is initially empty. When displayed, each column is labeledat the top starting from and separated from adjacent columns by vertical bars Ask the user which column to drop the current tile If the column is full, end the game with an appropriate message. Otherwise, place the tile in thebottommost open space in the selected column If there are any sets of at least three of the same tiles in a row or column, change all tiles in allsets to asterisks. Sets may overlap. Prompt the user for input before continuing Remove all asterisks from the grid and slide any tiles above those into the empty slots Repeat steps until no sets remain.You do not have to validate user input. That means you may assume the user gives proper input to allprompts for example, you may assume the numbers at the beginning of the game are all positiveintegers less than
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
