#minesweeper #clone #command-line #flags #game #cli #uncover

app cmd-minesweeper

A simple command line based minesweeper clone

4 releases

0.1.3 Mar 29, 2021
0.1.2 Mar 29, 2021
0.1.1 Mar 28, 2021
0.1.0 Mar 28, 2021

#21 in #minesweeper

MIT/Apache

26KB
585 lines

cls-minesweeper

cls-minesweeper is a simple clone of minesweeper designed to be played in the terminal. It uses crossterm so in theory it should be compatible with most terminals. The program comes with a number of arguments that allow for control over the games generation, which can be viewed with --help.

How to Play

Use the arrow keys or WASD to move the cursor around. Use Q to uncover, and E to flag. Use CTRL+Q or ESC to exit the game. All rules are otherwise the same as normal minesweeper!

Features

  • Various difficulties and fine grain control
  • Compatibility across all modern operating systems (untested :p)
  • Fun colors
  • Local high score record
  • Leaderboards(?)
  • Key remaping/configuration changing

No promises that any of this will ever get added, but no ones going to use this anyways, so it should be ok.

This is my first non-trivial project in rust, and my first project to be released to the wider world, so weird bugs are inevitable, and the code is fairly gross. Any and all feedback would be deeply appreciated.

Dependencies

~4.5MB
~71K SLoC