@alimberdi/minesweeper
v0.1.0
Published
Minesweeper for the terminal with three board sizes.
Maintainers
Readme
@alimberdi/minesweeper
Minesweeper for modern terminals with three board sizes, a safe first click and best times.
npx @alimberdi/minesweeperControls
| Key | Action |
| --- | --- |
| ↑ ↓ ← → / WASD / HJKL | Move the cursor |
| Space / Enter | Open a cell, or open the neighbours of a number whose flags match |
| F / X | Place or remove a flag |
| T | Cycle the theme (Minimalist, Brutalist, Metallist, Cyberpunk) |
| R | Restart the same board |
| M / Esc | Back to the menu |
| Q | Quit and restore the terminal |
Boards: Beginner 9×9 (10 mines), Intermediate 16×16 (40), Expert 30×16 (99).
Closed cells alternate two shades like a chessboard, a flag is a yellow plate with
an F, and the mine you opened is highlighted when you lose. The chosen theme
and your best time for each board are saved between sessions.
License
MIT
