← 返回命令列表

Linux command

nbreversi 命令

文本

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

常用示例

Play reversi against the computer

nbreversi

Set AI difficulty level

nbreversi -p [5]

Play two humans

nbreversi -1 h -2 h

Play without replay prompt

nbreversi -n

说明

nbreversi is a terminal-based Reversi (Othello) game from the nbsdgames collection. Players take turns placing discs on the board. When a disc is placed so that one or more of the opponent's discs are flanked in a straight line, those discs are flipped. The player with the most discs when no more moves can be made wins. Controls: arrow keys or hjkl to move cursor, ENTER to place a disc, 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 nbreversi command used for?

nbreversi is a terminal-based Reversi (Othello) game from the nbsdgames collection. Players take turns placing discs on the board. When a disc is placed so that one or more of the opponent's discs are flanked in a straight line, those discs are flipped. The player with the most discs when no more moves can be made wins. Controls: arrow keys or hjkl to move cursor, ENTER to place a disc, q to quit. Mouse input is also supported.

How do I run a basic nbreversi example?

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

What does -1 _type_ do in nbreversi?

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