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: 执白,即后手

示例

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_boardgame-0.4.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_boardgame-0.4.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_boardgame-0.4.1.tar.gz.

File metadata

  • Download URL: nonebot_plugin_boardgame-0.4.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • 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_boardgame-0.4.1.tar.gz
Algorithm Hash digest
SHA256 b1e780ead9c1095955a0dae13f430a9a890f4aa0a65e9422ffa2f4ad0aa5c41e
MD5 3e1e1b353294b057238329c1091ed12a
BLAKE2b-256 1a67aaf926e4ec44d063e911b6c17bc29086b8dfe919026c6331217d7aefbbe6

See more details on using hashes here.

File details

Details for the file nonebot_plugin_boardgame-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_boardgame-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 739cd565a583baed03b3503bd7e3186c46413a86ddb53949713cf1a00b00d2c7
MD5 088bdd69545538660380118233f9c5af
BLAKE2b-256 ebfeba4540623b58f24bde4bea28a4bdb521623613f75306d2b5e6674794ccba

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 files

0.4.0

2 files

0.3.4

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

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

2 files

0.1.3

2 files

0.1.2

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