minesweeper-console

1.0.3 • Public • Published

minesweeper-console

Play Minesweeper in the console in Node.js

Usage

Install it:

npm i -g minesweeper-console

Play it:

minesweeper-console

Controls

  • WASD or OKL; or 8456 to move the cursor
  • [SPACE] to reveal a location
  • B to mark/unmark a location as having bomb
  • Q to quit

At the start, you can specify the width and height of the board (up to 99 in each direction) and the number of bombs to be placed on the board.

Why?

Why not? It's not fully structured code, so it's not of particular educational value, but it might be of use for something.

(And I'm learning publishing to npm, so there's that.)

History

  • 1.0.3 Current version

Readme

Keywords

none

Package Sidebar

Install

npm i minesweeper-console

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

18.8 kB

Total Files

7

Last publish

Collaborators

  • realhandy