← 返回命令列表

Linux command

freesweep 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start a default game

freesweep

Set board dimensions

freesweep --height [16] --width [30]

Set number of mines

freesweep --mines [99]

说明

freesweep is a curses-based minesweeper game for the terminal. The player reveals cells on a grid, using number clues to avoid hidden mines. Flagging suspected mines and clearing all safe cells wins the game. Use arrow keys to move, space to reveal a cell, and f to flag a mine. Press q to quit.

参数

-h, --height _N_
Number of rows.
-w, --width _N_
Number of columns.
-m, --mines _N_
Number of mines.
-%, --percent _N_
Set mines as percentage of board squares.
-f, --fast
Skip the interactive setup dialog.
-i, --interactive
Force interactive setup menu.
-a, --alt-charset
Toggle alternate character set for rendering.
-b, --show-best-times
Show the best-times viewer.
-s, --save-prefs
Save the current command-line preferences.
-H, --help
Display help information.

FAQ

What is the freesweep command used for?

freesweep is a curses-based minesweeper game for the terminal. The player reveals cells on a grid, using number clues to avoid hidden mines. Flagging suspected mines and clearing all safe cells wins the game. Use arrow keys to move, space to reveal a cell, and f to flag a mine. Press q to quit.

How do I run a basic freesweep example?

Run `freesweep` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h, --height _N_ do in freesweep?

Number of rows.