UNPKG

minesweeper-cli.js

Version:

A simple CLI minesweeper clone

24 lines (13 loc) 625 B
# Minesweeper JS A simple emoji based Minesweeper clone, playable on the CLI! ![A screenshot of the Minesweeper.js CLI](https://raw.githubusercontent.com/thormeier/minesweeper.js/main/minesweeper.png) ## Usage Download by cloning this repository, start it by running `node minesweeper.js` or executing `npx minesweeper-cli.js` ## Arguments * `--width=number` - Width of the field, defaults to `8` * `--height=number` - Height of the field, defaults to `8` * `--mines=number` - Number of mines to place on the board, defaults to `10` ## Detailed explanation See my post over on `dev.to/thormeier`! ## License MIT