Skip to content

abnore/Minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

v2.0.0
No SDL, no Raylib — this version is built from scratch using only libc and Cocoa.

A nostalgic Win98/2000-style Minesweeper clone, written in pure C, with no external game engine dependencies.

Warning

Made for macOS — not cross-platform.

Example showing the graphics


In Progress

  • Working 16x16 grid
  • Variable grid size (WIP)
  • Sounds?

Features

  • Accurate bomb counter — supports negative numbers
  • Timer stops when the game ends
  • Undo press: if you click and move away, the tile won’t stay pressed
  • Right-click cycles through: flag → question mark → blank
  • Question marks are pressable
  • All graphics rendered using picasso, canopy, and blackbox

Gameplay

The macro BOMB_CHANCE controls difficulty.
Lower = more bombs.
Default is 7, which is medium difficulty.
Try under 5 for a real challenge.


Building

To build:

make

To build & run:

make run

Build output goes to the bin/ directory.

About

Making minesweeper like the old Win98 style

Resources

License

Stars

Watchers

Forks

Packages

No packages published