Metadata-Version: 2.1
Name: nonebot-plugin-minesweeper
Version: 0.1.8
Summary: Nonebot2 扫雷插件
Home-page: https://github.com/noneplugin/nonebot-plugin-minesweeper
License: MIT
Author: meetwq
Author-email: meetwq@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: Pillow (>=9.0.0,<10.0.0)
Requires-Dist: nonebot-adapter-onebot (>=2.0.0-beta.1,<3.0.0)
Requires-Dist: nonebot2 (>=2.0.0-beta.4,<3.0.0)
Project-URL: Repository, https://github.com/noneplugin/nonebot-plugin-minesweeper
Description-Content-Type: text/markdown

# nonebot-plugin-minesweeper

适用于 [Nonebot2](https://github.com/nonebot/nonebot2) 的 扫雷插件


### 安装

- 使用 nb-cli

```
nb plugin install nonebot_plugin_minesweeper
```

- 使用 pip

```
pip install nonebot_plugin_minesweeper
```


### 使用

**以下命令需要加[命令前缀](https://v2.nonebot.dev/docs/api/config#Config-command_start) (默认为`/`)，可自行设置为空**

```
@机器人 + 扫雷 / 扫雷初级 / 扫雷中级 / 扫雷高级
```

*注：若命令前缀为空则需要 @机器人，否则可不@*

可使用 -r/--row ROW 、-c/--col COL 、-n/--num NUM 自定义行列数和雷数；

可使用 -s/--skin SKIN 指定皮肤，默认为 winxp；

当前支持的皮肤：narkomania, mine, ocean, scratch, predator, clone, winxp, hibbeler, symbol, pacman, win98, winbw, maviz, colorsonly, icicle, mario, unknown, vista

使用 挖开/open + 位置 来挖开方块，可同时指定多个位置；

使用 标记/mark + 位置 来标记方块，可同时指定多个位置；

位置为 字母+数字 的组合，如“A1”

或使用 `minesweeper` 指令：

```
minesweeper [-r --row ROW] [-c --col COL] [-n --num NUM] [-s --skin SKIN] [--show] [--stop] [--open POSITIONS] [--mark POSITIONS]
```


### 示例

<div align="left">
  <img src="https://s2.loli.net/2022/07/10/p1FYz5JoOwlcNXS.png" width="400" />
</div>


### 特别感谢

- [mzdluo123/MineSweeper](https://github.com/mzdluo123/MineSweeper) Mirai的扫雷小游戏
- [Minesweeper X](http://www.curtisbright.com/msx/) A minesweeper clone with extra features

