Skip to main content

适用于 Nonebot2 的棋类游戏插件

Project description

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

示例

Project details


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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_boardgame-0.4.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.11.0 Linux/6.5.0-1015-azure

File hashes

Hashes for nonebot_plugin_boardgame-0.4.0.tar.gz
Algorithm Hash digest
SHA256 185416e12d37a0fbfe27d7dc756d73896eab8a32dae8f7767007519c86049c8e
MD5 9c27de166f1460f5c0c8c240ef25eb68
BLAKE2b-256 fc1d74d4e5a3d17bf8c5a61a3bf0145e994f12aa6f0e9b7a52c8eafb2f4fc21d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_boardgame-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd5ea7967073f0cc74d694a55e41f09ecd30dc5849417ebb31e2ccaa35a311e4
MD5 459f566424bd529525415da1a65748b5
BLAKE2b-256 39a70b9f628d6b88bfc32aea61ad95415fab2fe6c497e7ade7a5fcfb7a71e533

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page