In this project we will implement the Minesweeper game.Minesweeper is played on a rectangle grid. When the game starts, anumber of bombs are hidden on random positions on the field. Inevery round, the player \"touches\" a cell of the field. If the cellcontains a bomb, it explodes, the game ends, and the player loses.Otherwise, the cell is uncovered to show the number of bombs in thevicinity, that is, the number of neighboring cells that containbombs. (Each cell has eight neighbors, including the diagonalneighbors. If the number is zero, the cell is displayed as ablank.) When the user believes she knows the position of a bomb,she can flag that cell with a marker. It is allowed to change one'smind later and uncover a flagged cell. If all cells are eitheruncovered or flagged, and the number of flags is equal to thenumber of bombs, then the game ends and the player wins.
The display should be performed in the Terminal. The C code mustenforce the rules and prevent the players to choose forbiddenoptions.
Do c programming coding based on this qusetion..