Linux command
nbmines 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start a default game
nbmines
Set custom board size
nbmines -c [10] -r [10]
Set the number of mines
nbmines -m [15]
Play in easy mode
nbmines -e
说明
nbmines is a terminal-based minesweeper game from the nbsdgames package, a collection of text-based games. The goal is to reveal all cells that do not contain mines while avoiding the mined ones. The game uses an ncurses interface with keyboard and mouse support. Use arrow keys or hjkl to move, ENTER to reveal a cell, and SPACE to flag/unflag a cell. Press q to quit.
参数
- -c _COLS_
- Number of columns.
- -r _ROWS_
- Number of rows.
- -m _MINES_
- Number of mines.
- -e
- Easy mode.
- --help
- Display help information.
FAQ
What is the nbmines command used for?
nbmines is a terminal-based minesweeper game from the nbsdgames package, a collection of text-based games. The goal is to reveal all cells that do not contain mines while avoiding the mined ones. The game uses an ncurses interface with keyboard and mouse support. Use arrow keys or hjkl to move, ENTER to reveal a cell, and SPACE to flag/unflag a cell. Press q to quit.
How do I run a basic nbmines example?
Run `nbmines` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c _COLS_ do in nbmines?
Number of columns.