← 返回命令列表

Linux command

nbcheckers 命令

文本

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

常用示例

Play checkers against the computer

nbcheckers

Set AI difficulty level

nbcheckers -p [5]

Play two humans

nbcheckers -1 h -2 h

Play without replay prompt

nbcheckers -n

说明

nbcheckers is a terminal-based checkers (draughts) game from the nbsdgames collection. Players take turns moving pieces diagonally, jumping over opponent pieces to capture them. Pieces that reach the opposite end of the board become kings and can move backward. Controls: arrow keys or hjkl to move cursor, ENTER to select and move pieces, q to quit. Mouse input is also supported.

参数

-1 _type_
Set player 1 type: h (human) or c (computer).
-2 _type_
Set player 2 type: h (human) or c (computer).
-p _depth_
Set AI difficulty/search depth (1-127).
-n
Don't ask for replay after the game ends.
-h
Display help information.

FAQ

What is the nbcheckers command used for?

nbcheckers is a terminal-based checkers (draughts) game from the nbsdgames collection. Players take turns moving pieces diagonally, jumping over opponent pieces to capture them. Pieces that reach the opposite end of the board become kings and can move backward. Controls: arrow keys or hjkl to move cursor, ENTER to select and move pieces, q to quit. Mouse input is also supported.

How do I run a basic nbcheckers example?

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

What does -1 _type_ do in nbcheckers?

Set player 1 type: h (human) or c (computer).