Skip to content

Release 4

Latest
Compare
Choose a tag to compare
@8dcc 8dcc released this 28 Mar 19:26
· 22 commits to main since this release

Usage

Parameters:

$ ./minesweeper.out --help
Usage:
    ./minesweeper.out                   - Launch with default resolution
    ./minesweeper.out --help            - Show this help
    ./minesweeper.out -h                - Same as --help
    ./minesweeper.out --keys            - Show the controls
    ./minesweeper.out -k                - Same as --keys
    ./minesweeper.out --resolution WxH  - Launch with specified resolution (width, height)
    ./minesweeper.out -r WxH            - Same as --resolution
    ./minesweeper.out --difficulty N    - Use specified difficulty from 1 to 100. Default: 40
    ./minesweeper.out -d N              - Same as --difficulty

Keys:

$ ./minesweeper.out --keys
Controls:
    <arrows> - Move in the grid
        hjkl - Move in the grid (vim-like)
     <space> - Reveal tile
    <LMouse> - Reveal clicked bomb
           f - Flag bomb
    <RMouse> - Flag clicked bomb
           r - Reveal all tiles and end game
           q - Quit the game

Aditional features

  • Mouse support (on supported terminals)
  • Color support (on supported terminals)
  • Reveal surrounding: Adjacent tiles will get revealed if the user is trying to reveal:
    • An already revealed tile
    • With adjacent bombs
    • With all bombs flagged