2025-10-16 01:10:09 +02:00
|
|
|
/*
|
2025-10-18 21:35:01 +02:00
|
|
|
* Created by snapshot112 on 15/10/2025
|
2025-10-16 01:10:09 +02:00
|
|
|
*
|
2025-10-18 21:35:01 +02:00
|
|
|
* A game of minesweeper build on the grid game engine.
|
2025-10-16 01:10:09 +02:00
|
|
|
*
|
2025-10-18 21:35:01 +02:00
|
|
|
* Please make sure to include and initialize the game engine before calling minesweeper();
|
2025-10-16 01:10:09 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef MINIGAME_MENU_MINESWEEPER_H
|
|
|
|
|
#define MINIGAME_MENU_MINESWEEPER_H
|
|
|
|
|
|
|
|
|
|
/*
|
2025-10-18 21:35:01 +02:00
|
|
|
* A game of minesweeper build on the grid game engine.
|
2025-10-16 01:10:09 +02:00
|
|
|
*
|
2025-10-18 21:35:01 +02:00
|
|
|
* Please make sure to include and initialize the game engine before calling minesweeper();
|
2025-10-16 01:10:09 +02:00
|
|
|
*
|
|
|
|
|
* Side Effects:
|
|
|
|
|
* Clears the console and uses it to play a game of minesweeper.
|
|
|
|
|
*
|
|
|
|
|
* Instructions:
|
|
|
|
|
* use WSAD or arrow keys to select a grid square.
|
|
|
|
|
* use SPACEBAR to open the current square.
|
|
|
|
|
* use 'f' to mark/unmark a square.
|
|
|
|
|
* use BACKSPACE to exit the game early.
|
|
|
|
|
*
|
|
|
|
|
* marked squares can't be opened.
|
|
|
|
|
*/
|
|
|
|
|
void minesweeper(void);
|
|
|
|
|
|
|
|
|
|
#endif //MINIGAME_MENU_MINESWEEPER_H
|