An open API service indexing awesome lists of open source software.

https://github.com/mordv/mnswpr

💣 Minesweeper game for your terminal
https://github.com/mordv/mnswpr

cli cli-app fun game ink nodejs npm-package react reactjs terminal terminal-game typescript

Last synced: about 11 hours ago
JSON representation

💣 Minesweeper game for your terminal

Awesome Lists containing this project

README

        




🚩 A Minesweeper game for your terminal written with ReactJS & ink 😎

## Run
```bash
npx mnswpr
```
## Install globally
```bash
npm install -g mnswpr
mnswpr
```

## Supported terminals
![legacy mode](https://user-images.githubusercontent.com/32086218/141684622-dcf166b5-1d66-4f03-a895-8f14edec6132.gif)

The interface works with emoji by default. If your terminal doesn't support it, you can either switch to legacy mode by pressing `l` button or update your terminal (For Windows I suggest [Windows Terminal](https://github.com/microsoft/terminal))

## Options

```
Usage: mnswpr

Press h to show game controls.

Options:
--legacy, -L (or press l)
Legacy mode. Use this if your terminal doesn't support emojis

--quick [b|i|e|width,height,mines], -Q [b|i|e|width,height,mines]
Start game directly with one of the difficulties: [b|i|e]
or a custom field: [width(5-50),height(5-25),mines(1-width*height*0.6)]

Examples:
mnswpr --quick b #start game with beginner difficulty
mnswpr -Q 10,20,60 #start game with custom field width:10 height:20 mines:60
```