This is a simple implementation of the classic Minesweeper game in HolyC. The game board is represented as a 2D array, and the player can reveal cells or flag them as mines. The game ends when the player reveals a mine or successfully flags all mines.
This is a fun project to try out Holy C, it's nothing too serious!
To run this code, you will need to have the Holy C compiler installed.
The best option is known as hcc, and it's available on GitHub.
- Instructions on how to build and use
hcccan be found in the repository. - Once you have
hccset up, you can compile the code using the following command:
hcc -run main.hc- This will compile and execute the Minesweeper game. Follow the on-screen instructions to play!
/c/main.c: Implementation of the game in C, from which I based the Holy C version..vscode/holy-c-snippets.code-snippets: Since Holy C does not have an LSP, this file contains some useful snippets for working with Holy C in VS Code.