wip refactoring file structure
This commit is contained in:
16
games/minesweeper/minesweeper.c
Normal file
16
games/minesweeper/minesweeper.c
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Created by snapshot112 on 15/10/2025
|
||||
*/
|
||||
|
||||
#include "minesweeper.h"
|
||||
|
||||
#include <ncurses.h>
|
||||
|
||||
#include "../../engine/grid_game_engine.h"
|
||||
|
||||
void minesweeper() {
|
||||
clear();
|
||||
mvprintw(0,0, "Minesweeper has not yet been created");
|
||||
graceful_exit((coordinate){0, 3});
|
||||
refresh();
|
||||
}
|
||||
30
games/minesweeper/minesweeper.h
Normal file
30
games/minesweeper/minesweeper.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Created by snapshot112 on 15/10/2025
|
||||
*
|
||||
* A game of minesweeper build on the grid game engine.
|
||||
*
|
||||
* Please make sure to include and initialize the game engine before calling minesweeper();
|
||||
*/
|
||||
|
||||
#ifndef MINIGAME_MENU_MINESWEEPER_H
|
||||
#define MINIGAME_MENU_MINESWEEPER_H
|
||||
|
||||
/*
|
||||
* A game of minesweeper build on the grid game engine.
|
||||
*
|
||||
* Please make sure to include and initialize the game engine before calling minesweeper();
|
||||
*
|
||||
* 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
|
||||
Reference in New Issue
Block a user