Skip to main content

nonebot-plugin-boardgame

适用于 Nonebot2 的棋类游戏插件。

抄自隔壁 koishi(:koishi-plugin-chess

安装

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

使用

目前支持的规则有:

  • 五子棋
  • 围棋(禁全同,暂时不支持点目)
  • 黑白棋

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

@机器人 发送 “围棋” 或 “五子棋” 或 “黑白棋” 开始一个对应的棋局,一个群组内同时只能有一个棋局。

发送“落子 字母+数字”下棋,如“落子 A1”;

游戏发起者默认为先手,可使用 --white 选项选择后手;

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

发送“查看棋局”显示当前棋局;

发送“悔棋”可以进行悔棋;

发送“跳过回合”可跳过当前回合(仅黑白棋支持);

手动结束游戏或超时结束游戏时,可发送“重载xx棋局”继续下棋,如 重载围棋棋局;

或者使用 boardgame 指令:

可用选项:

  • -r RULE, --rule RULE: 规则名
  • --white: 执白,即后手

示例

Metadata

Release files for nonebot_plugin_boardgame 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot_plugin_boardgame 0.4.1
File Size Uploaded
nonebot_plugin_boardgame-0.4.1.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot_plugin_boardgame 0.4.1
File Interpreter ABI Platform
nonebot_plugin_boardgame-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.0 kB

Release files / nonebot_plugin_boardgame-0.4.1.tar.gz

Download URL nonebot_plugin_boardgame-0.4.1.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b1e780ead9c1095955a0dae13f430a9a890f4aa0a65e9422ffa2f4ad0aa5c41e
BLAKE2b-256 checksum
How to use checksums
1a67aaf926e4ec44d063e911b6c17bc29086b8dfe919026c6331217d7aefbbe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.11.0 Linux/6.5.0-1025-azure

Release files / nonebot_plugin_boardgame-0.4.1-py3-none-any.whl

Download URL nonebot_plugin_boardgame-0.4.1-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
739cd565a583baed03b3503bd7e3186c46413a86ddb53949713cf1a00b00d2c7
BLAKE2b-256 checksum
How to use checksums
ebfeba4540623b58f24bde4bea28a4bdb521623613f75306d2b5e6674794ccba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.11.0 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page