Minesweeper clone that runs in a terminal. Only with Bash.
curl eiguchipablo.dev/minesweeper | bash-h– show the help/controls screen.-s WIDTHxHEIGHT– choose the board size (default8x8).-f- set full screen size board.-m MINES– set the mine count (default10).-p PERCENT- set mines to a percentage of total tiles.
If you want to pass options when piping from curl, append them after bash -s --, like this:
curl eiguchipablo.dev/minesweeper | bash -s -- -s 16x16 -m 40- Arrow keys or
WASD– move the cursor (wraps around the edges). SpaceorEnter– reveal the tile under the cursor.R– restart the board.H- show help/controls.Ctrl+C– quit game.