EliteTK / minecurses

NCurses minesweeper.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minecurses

NCurses minesweeper.

Controls:

hjkl or wasd to move around, r to reveal, f to flag, shift + r is the same as middle click would be on normal minesweeper. I nickname it "AOE reveal".

Working features:

  • Drawing of the game board.
  • Moving the cursor.
  • Basic keyboard input.
  • AOE reveal.

TODO:

  1. Write a base minesweeper system which has simple io commands allowing it to get different "maps" of the current game state, and input which allows to directly change any piece of the game i.e. reveal a part, flag a mine, or queryflag a mine.
  2. Write a solver for this base system which then integrates with the game to dynamically intelligently create a map which is solvable without ever having to guess any piece.
  3. At all stages: attempt to write a ncurses interface for all this.

End goal:

A classic minesweeper game which generates fair maps, provides different levels of difficulty has a simple and powerful keyboard interface with the possibility of a mouse interface.

About

NCurses minesweeper.

License:GNU General Public License v2.0


Languages

Language:C 96.4%Language:Makefile 3.6%