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 tile-matching 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:1. 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.2. Display the current tile grid. The grid is initially empty. When displayed, each column is labeledat the top (starting from 1) and separated from adjacent columns by vertical bars.3. Ask the user which column to drop the current tile.4. If the column is full, end the game with an appropriate message. Otherwise, place the tile in thebottom-most open space in the selected column.5. 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.6. Remove all asterisks from the grid and slide any tiles above those into the empty slots.7. Repeat steps 5-6 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 25).

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 Databases Questions!