Campo - Minado.c Bernardo Alves Costa Pereira Campominadorafael.c Rafael Parreira Chequer
The document contains code from two C programs that implement a minesweeper game. The first program tracks the number of safe spaces and checks if the player loses by clicking a mine. The second program tracks the number of mines on the board, checks for valid moves, and checks surrounding spaces to determine if they are mines or safe. It also tracks the number of correct guesses and checks for errors on the player's turn.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
64 views3 pages
Campo - Minado.c Bernardo Alves Costa Pereira Campominadorafael.c Rafael Parreira Chequer
The document contains code from two C programs that implement a minesweeper game. The first program tracks the number of safe spaces and checks if the player loses by clicking a mine. The second program tracks the number of mines on the board, checks for valid moves, and checks surrounding spaces to determine if they are mines or safe. It also tracks the number of correct guesses and checks for errors on the player's turn.