random

:-)
git clone read: git://git.margiolis.net/random.git
Log | Files | Refs | LICENSE

README.md (1210B)


      1 # minecurses
      2 
      3 A minesweeper game using `curses`. The game was originally made as a
      4 university assignment of mine, but I decided to take it a bit further afterwards.
      5 
      6 ## How to play
      7 
      8 The objective is to simply find and defuse all the mines, not open all the non-mine
      9 cells, like in most minesweeper games; this makes the game relatively harder.
     10 
     11 * Enter number of columns
     12 * Enter number of rows
     13 * Enter number of mines
     14 * Move with `w`/`s`/`a`/`d` keys
     15 * Open cell with `[ENTER]`, or `o`
     16 * Flag cell with `f`
     17 * Defuse mine (only if flagged) with `g`
     18 * You win if you defuse all the mines
     19 * You lose in case you open a mine or you try to defuse a flagged cell not containing a mine
     20 
     21 Additional controls
     22 
     23 * `m`: Open control menu
     24 * `q`: Quit
     25 
     26 ## Usage
     27 
     28 ```shell
     29 $ make && make run
     30 $ make clean # optional
     31 ```
     32 You can install `minecurses` by running `make install`. The binary will be 
     33 installed in `/usr/local/bin`.
     34 
     35 ## Preview
     36 
     37 ### Start screen
     38 ![startmenu](https://user-images.githubusercontent.com/54286563/102023826-b110f780-3d96-11eb-89a3-4b0679a36a50.png)
     39 ### Gameplay
     40 ![gameplay](https://user-images.githubusercontent.com/54286563/102023832-ba9a5f80-3d96-11eb-9341-b2a07a7356de.png)
     41 
     42 ## To Do
     43 
     44 * Add colors