Skip to content

Ransomwave/HolySweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HolySweeper

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!

How to Compile and Run

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.

  1. Instructions on how to build and use hcc can be found in the repository.
  2. Once you have hcc set up, you can compile the code using the following command:
hcc -run main.hc
  1. This will compile and execute the Minesweeper game. Follow the on-screen instructions to play!

What's Included in this repository

  • /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.

About

The classic Minesweeper game implemented in HolyC, the language by Terry A. Davis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors