基于nonebot2框架的插件,实现交互游戏恶魔轮盘赌
Project description
说明
本项目用于以交互形式完成游戏玩法恶魔轮盘赌(Buckshot Roulette)的玩法,可以在群聊中使用,一个群同时只能存在一场对局
由于“赌”在国内部分平台是被封禁的,所以文案均改为“恶魔轮盘”
安装
以下提到的方法 任选其一即可
[推荐] 使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot_plugin_BR
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot_plugin_BR
pdm
pdm add nonebot_plugin_BR
poetry
poetry add nonebot_plugin_BR
conda
conda install nonebot_plugin_BR
指令
游戏外
- br开始| br加入 —— 开始游戏
- br帮助 —— 查看帮助
游戏中
- 开枪 —— (前提:加入游戏)进行攻击判定
- 结束游戏 —— (前提:在对局中,或者超级管理员)结束当前会话在进行的游戏
- 使用道具 xxx(目前道具:刀 | 手铐 | 香烟 | 放大镜 | 饮料 )
- br当前状态 —— 查看当前游戏的数值状态
测试图
env配置
暂无
QA
重启后加入游戏方法
在游戏结束后,可以通过命令br加入加入游戏,两个人都需要发送,否则判断不在游戏中
饮料退弹效果
饮料退弹应该是不可知的子弹,但是当开枪后的效果结算就知道当前的子弹,这是一个bug
to do
- 开枪基本逻辑
- 道具逻辑
- 分数逻辑
- 人机逻辑
🙈 其他
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_br-0.0.8.tar.gz
(11.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_br-0.0.8.tar.gz.
File metadata
- Download URL: nonebot_plugin_br-0.0.8.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.22.2 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
955049a75c9efabb16e0c6af9df10379a69922f860678086a80f64ddcf4ae4c8
|
|
| MD5 |
550f381f51fce6722628b5ce0c02e061
|
|
| BLAKE2b-256 |
6a48c030e0e976938bdcb859e052732152c1872d85446b21decd997d564c4a64
|
File details
Details for the file nonebot_plugin_br-0.0.8-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_br-0.0.8-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.22.2 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b148419643fb34d2e6a69180a7b4abe4b0258c5cd5dfeb37aa7379515b1b707
|
|
| MD5 |
e8dfb33cc4afe84db2f7ee6d5b14d1a2
|
|
| BLAKE2b-256 |
31319c35b68549c8aca2686d9c1cc8ff8917ef9160ccfce0f57c21ff3d80da01
|