Skip to content

mordv/mnswpr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Run

npx mnswpr

Install globally

npm install -g mnswpr
mnswpr

Supported terminals

legacy mode

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)

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