Skip to main content

nonebot-plugin-cchess

适用于 Nonebot2 的象棋插件。

安装

  • 使用 nb-cli
nb plugin install nonebot_plugin_cchess
  • 使用 pip
pip install nonebot_plugin_cchess

人机功能 需要使用遵循 UCCI协议 的引擎

需要在 .env 文件中添加 引擎的可执行文件的路径

cchess_engine_path=/path/to/your/engine

经试用可用的引擎:

注意,Fairy-Stockfish 支持多种游戏,需要选择支持 Xiangqi 的发行版,即需要选带有 largeboard 的版本

使用

以下命令需要加命令前缀 (默认为/),可自行设置为空

@我 + “象棋人机”或“象棋对战”开始一局游戏;

可使用“lv1~8”指定AI等级,如“象棋人机lv5”,默认为“lv4”;

发送 中文纵线格式如“炮二平五” 或 起始坐标格式如“h2e2”下棋;

发送“结束下棋”结束当前棋局;

发送“显示棋盘”显示当前棋局;

发送“悔棋”可进行悔棋(人机模式可无限悔棋;对战模式只能撤销自己上一手下的棋);

或者使用 cchess 指令:

可用选项:

  • --battle: 对战模式,默认为人机模式
  • --black: 执黑,即后手
  • -l <LEVEL>, --level <LEVEL>: 人机等级,可选 1~8,默认为 4

示例

特别感谢

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_cchess-0.4.2.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_cchess-0.4.2-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_cchess-0.4.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_cchess-0.4.2.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.0 Linux/6.5.0-1025-azure

File hashes

Hashes for nonebot_plugin_cchess-0.4.2.tar.gz
Algorithm Hash digest
SHA256 7d38ccd5e0f76a41d4ac4598c591d0ca940c282f8af1785a84839ef8f8ae31d9
MD5 6d0dca8ac2919e58f55b5e92d4bb0250
BLAKE2b-256 5184d3e4eec5bf0a8ff8e385e317510461dae03bd5e5f42b644a67ffef267fab

See more details on using hashes here.

File details

Details for the file nonebot_plugin_cchess-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_cchess-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 134b833f1eddbe8672b5f0ab95202f4c909c06bd6552ae65e4dfaaed32317dc4
MD5 f6b197c1eac3431cc30de0fa0f51b4a5
BLAKE2b-256 21950d6cf8b012cfdd1f8ffeb8832865669c5defca649cf2f8a0a479ee816fd3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 files

0.4.1

2 files

0.4.0

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4.1

2 files

0.1.4

2 files

0.1.2.1

2 files

0.1.2

2 files

0.1.1.3

2 files

0.1.1.2

2 files

0.1.1.1

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page