← 返回命令列表

Linux command

gnuchess 命令

文本

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

常用示例

Start an interactive chess game

gnuchess

Play in two-player mode

gnuchess -u

Play in easy mode

gnuchess -e

Load a game from a PGN file

gnuchess -l [game.pgn]

Set search depth level

gnuchess -S [5]

Run as UCI engine

gnuchess --uci

Run as XBoard engine

gnuchess --xboard

说明

gnuchess is a free chess-playing program that can be used as a standalone interactive chess game or as a backend engine for graphical chess frontends like XBoard or GNOME Chess. It supports both the XBoard and UCI communication protocols. In interactive mode, enter moves in algebraic notation (e.g. e2e4, Nf3). Type help for a list of commands. The engine includes an opening book and uses alpha-beta search with iterative deepening.

参数

-h, --help
Display usage help.
-v, --version
Display version information.
-u
Two-player mode (user vs user).
-e
Easy mode. The engine does not think during the opponent's turn.
-l _PGNFILE_, --load _PGNFILE_
Load game from a PGN file.
-S _LEVEL_, --setlevel _LEVEL_
Set search depth level (1-10).
--xboard, -x
XBoard/WinBoard engine protocol mode.
--uci
UCI engine protocol mode.
--post, -p
Show engine thinking output.
--manual, -m
Manual mode. The engine does not play until told to.
-M _SIZE_, --memory _SIZE_
Set hash table memory size in MB.

FAQ

What is the gnuchess command used for?

gnuchess is a free chess-playing program that can be used as a standalone interactive chess game or as a backend engine for graphical chess frontends like XBoard or GNOME Chess. It supports both the XBoard and UCI communication protocols. In interactive mode, enter moves in algebraic notation (e.g. e2e4, Nf3). Type help for a list of commands. The engine includes an opening book and uses alpha-beta search with iterative deepening.

How do I run a basic gnuchess example?

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

What does -h, --help do in gnuchess?

Display usage help.