nonebot_plugin_boardgame


Namenonebot_plugin_boardgame JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/noneplugin/nonebot-plugin-boardgame
Summary适用于 Nonebot2 的棋类游戏插件
upload_time2024-03-02 09:28:04
maintainer
docs_urlNone
authormeetwq
requires_python>=3.8,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## nonebot-plugin-boardgame

适用于 [Nonebot2](https://github.com/nonebot/nonebot2) 的棋类游戏插件。

抄自隔壁 koishi(:[koishi-plugin-chess](https://github.com/koishijs/koishi-plugin-chess)


### 安装

- 使用 nb-cli

```
nb plugin install nonebot_plugin_boardgame
```

- 使用 pip

```
pip install nonebot_plugin_boardgame
```


### 使用

目前支持的规则有:

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

**以下命令需要加[命令前缀](https://nonebot.dev/docs/appendices/config#command-start-和-command-separator) (默认为`/`),可自行设置为空**


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

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

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

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

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

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

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

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


或者使用 `boardgame` 指令:

可用选项:
 - `-r RULE`, `--rule RULE`: 规则名
 - `--white`: 执白,即后手


### 示例

<div align="left">
    <img src="https://s2.loli.net/2022/06/17/TbaCXSL1u4sd9rV.png" width="400" />
</div>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/noneplugin/nonebot-plugin-boardgame",
    "name": "nonebot_plugin_boardgame",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "meetwq",
    "author_email": "meetwq@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/fc/1d/74d4e5a3d17bf8c5a61a3bf0145e994f12aa6f0e9b7a52c8eafb2f4fc21d/nonebot_plugin_boardgame-0.4.0.tar.gz",
    "platform": null,
    "description": "## nonebot-plugin-boardgame\n\n\u9002\u7528\u4e8e [Nonebot2](https://github.com/nonebot/nonebot2) \u7684\u68cb\u7c7b\u6e38\u620f\u63d2\u4ef6\u3002\n\n\u6284\u81ea\u9694\u58c1 koishi\uff08\uff1a[koishi-plugin-chess](https://github.com/koishijs/koishi-plugin-chess)\n\n\n### \u5b89\u88c5\n\n- \u4f7f\u7528 nb-cli\n\n```\nnb plugin install nonebot_plugin_boardgame\n```\n\n- \u4f7f\u7528 pip\n\n```\npip install nonebot_plugin_boardgame\n```\n\n\n### \u4f7f\u7528\n\n\u76ee\u524d\u652f\u6301\u7684\u89c4\u5219\u6709\uff1a\n\n- \u4e94\u5b50\u68cb\n- \u56f4\u68cb\uff08\u7981\u5168\u540c\uff0c\u6682\u65f6\u4e0d\u652f\u6301\u70b9\u76ee\uff09\n- \u9ed1\u767d\u68cb\n\n**\u4ee5\u4e0b\u547d\u4ee4\u9700\u8981\u52a0[\u547d\u4ee4\u524d\u7f00](https://nonebot.dev/docs/appendices/config#command-start-\u548c-command-separator) (\u9ed8\u8ba4\u4e3a`/`)\uff0c\u53ef\u81ea\u884c\u8bbe\u7f6e\u4e3a\u7a7a**\n\n\n@\u673a\u5668\u4eba \u53d1\u9001 \u201c\u56f4\u68cb\u201d \u6216 \u201c\u4e94\u5b50\u68cb\u201d \u6216 \u201c\u9ed1\u767d\u68cb\u201d \u5f00\u59cb\u4e00\u4e2a\u5bf9\u5e94\u7684\u68cb\u5c40\uff0c\u4e00\u4e2a\u7fa4\u7ec4\u5185\u540c\u65f6\u53ea\u80fd\u6709\u4e00\u4e2a\u68cb\u5c40\u3002\n\n\u53d1\u9001\u201c\u843d\u5b50 \u5b57\u6bcd+\u6570\u5b57\u201d\u4e0b\u68cb\uff0c\u5982\u201c\u843d\u5b50 A1\u201d\uff1b\n\n\u6e38\u620f\u53d1\u8d77\u8005\u9ed8\u8ba4\u4e3a\u5148\u624b\uff0c\u53ef\u4f7f\u7528 `--white` \u9009\u9879\u9009\u62e9\u540e\u624b\uff1b\n\n\u53d1\u9001\u201c\u7ed3\u675f\u4e0b\u68cb\u201d\u7ed3\u675f\u5f53\u524d\u68cb\u5c40\uff1b\n\n\u53d1\u9001\u201c\u67e5\u770b\u68cb\u5c40\u201d\u663e\u793a\u5f53\u524d\u68cb\u5c40\uff1b\n\n\u53d1\u9001\u201c\u6094\u68cb\u201d\u53ef\u4ee5\u8fdb\u884c\u6094\u68cb\uff1b\n\n\u53d1\u9001\u201c\u8df3\u8fc7\u56de\u5408\u201d\u53ef\u8df3\u8fc7\u5f53\u524d\u56de\u5408\uff08\u4ec5\u9ed1\u767d\u68cb\u652f\u6301\uff09\uff1b\n\n\u624b\u52a8\u7ed3\u675f\u6e38\u620f\u6216\u8d85\u65f6\u7ed3\u675f\u6e38\u620f\u65f6\uff0c\u53ef\u53d1\u9001\u201c\u91cd\u8f7dxx\u68cb\u5c40\u201d\u7ee7\u7eed\u4e0b\u68cb\uff0c\u5982 `\u91cd\u8f7d\u56f4\u68cb\u68cb\u5c40`\uff1b\n\n\n\u6216\u8005\u4f7f\u7528 `boardgame` \u6307\u4ee4\uff1a\n\n\u53ef\u7528\u9009\u9879\uff1a\n - `-r RULE`, `--rule RULE`: \u89c4\u5219\u540d\n - `--white`: \u6267\u767d\uff0c\u5373\u540e\u624b\n\n\n### \u793a\u4f8b\n\n<div align=\"left\">\n    <img src=\"https://s2.loli.net/2022/06/17/TbaCXSL1u4sd9rV.png\" width=\"400\" />\n</div>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\u9002\u7528\u4e8e Nonebot2 \u7684\u68cb\u7c7b\u6e38\u620f\u63d2\u4ef6",
    "version": "0.4.0",
    "project_urls": {
        "Homepage": "https://github.com/noneplugin/nonebot-plugin-boardgame",
        "Repository": "https://github.com/noneplugin/nonebot-plugin-boardgame"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "39a70b9f628d6b88bfc32aea61ad95415fab2fe6c497e7ade7a5fcfb7a71e533",
                "md5": "459f566424bd529525415da1a65748b5",
                "sha256": "cd5ea7967073f0cc74d694a55e41f09ecd30dc5849417ebb31e2ccaa35a311e4"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_boardgame-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "459f566424bd529525415da1a65748b5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 13627,
            "upload_time": "2024-03-02T09:28:02",
            "upload_time_iso_8601": "2024-03-02T09:28:02.725259Z",
            "url": "https://files.pythonhosted.org/packages/39/a7/0b9f628d6b88bfc32aea61ad95415fab2fe6c497e7ade7a5fcfb7a71e533/nonebot_plugin_boardgame-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc1d74d4e5a3d17bf8c5a61a3bf0145e994f12aa6f0e9b7a52c8eafb2f4fc21d",
                "md5": "9c27de166f1460f5c0c8c240ef25eb68",
                "sha256": "185416e12d37a0fbfe27d7dc756d73896eab8a32dae8f7767007519c86049c8e"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_boardgame-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9c27de166f1460f5c0c8c240ef25eb68",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 11516,
            "upload_time": "2024-03-02T09:28:04",
            "upload_time_iso_8601": "2024-03-02T09:28:04.664097Z",
            "url": "https://files.pythonhosted.org/packages/fc/1d/74d4e5a3d17bf8c5a61a3bf0145e994f12aa6f0e9b7a52c8eafb2f4fc21d/nonebot_plugin_boardgame-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-02 09:28:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "noneplugin",
    "github_project": "nonebot-plugin-boardgame",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot_plugin_boardgame"
}
        
Elapsed time: 0.18841s