Skip to content

luke-tangh/minesweeper

Repository files navigation

minesweeper

Brief

C++ version of a classic game - minesweeper.

Environment

  • msvc c++ 17
  • EasyX

About

Config:

Change the constants in conf.h to modify the game.

constexpr int GRID_HEIGHT = 16;
constexpr int GRID_WIDTH = 30;
constexpr int MAX_MINES = 99;
  • MAX_MINES should not be greater than the product of GRIND_HEIGHT and GRIND_WIDTH.

  • The first click will not hit mine.

Shortkeys:

  • LEFTCLICK - open a cell
  • RIGHTCLICK - flag a cell
  • MIDDLECLICK - search from a cell
  • ESC - exit
  • R - restart

Credits

  • Black Squirrel - Winmine 31/NT4/2000+

Releases

No releases published

Languages