Skip to content
项目

关于

♝♞ 在终端中与 Stockfish 引擎下国际象棋。

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

♗ chs

Play chess against the Stockfish engine in your terminal.

Table of Contents

Installation

Pip

This package is available via PyPi.

$ python3 -m pip install chs

Arch Linux

There is a chs-git package in the Arch User Repository, which you can install with an AUR helper:

$ yay -S chs-git || paru -S chs-git

Usage

To play against the default level 1 (easiest) version of the Stockfish engine, just run chs command.

How to start playing

$ chs

To see all possible options, use the help command.

$ chs help

To play as the black pieces, use the --play-black flag.

$ chs --play-black

You can also specify the level of the engine if you want to tweak the difficulty.

$ chs --level=8

How to play

There are a few things you can do while playing:

  • Make moves using valid algebraic notation (e.g. Nf3, e4, etc.).
  • Take back your last move by playing back instead of a valid move.
  • Get a hint from the engine by playing hint instead of a valid move.

License

This software is free to use under the MIT License. See this reference for license text and copyright information.

探索相关项目

加载中…