Analyze reports of riichi mahjong AI NAGA and Mortal.
Project description
NAGA/Mortal牌谱解析
这是 NAGA助手 网站NAGA/Mortal牌谱解析的代码。
之所以开源这部分代码,是因为其技术含金量最高(有实际价值)、计算量较重(缓解网站负载)、且欢迎各位贡献。网站其余部分主要是重CRUD逻辑,参考价值不大,因此不做开源。
Install
pip install naga_helper
模块
analyzer
分析现有NAGA牌谱报告,使用方式如下:
导入pip包:
from naga_helper.analyzer import parse_report
parse_report('NAGA html content')
命令行:
python naga_helper/analyzer.py <naga牌谱网址> <Mortal牌谱id>
其中Mortal牌谱id为选填,如果填写,则会把Mortal的切牌选择合并入NAGA牌谱报告。恶手率/一致率/Rating的计算方式与NAGA一致。
naga牌谱地址可以同时省略前缀与后缀,只保留html key。
格式参考:
python naga_helper/analyzer.py https://naga.dmv.nico/htmls/9a852e2e3a273e1d5a362d69618000684340d3e0e96024e6fa07858afa1afa00v2_2.html 01f7faef6dc7fe5e
plugins
各类插件,包括NAGA网页模块等
功能
- NAGA牌谱报告分析
- Mortal牌谱报告分析 & 把Mortal报告融合入NAGA界面
- NAGA网页端快捷键注入脚本
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
naga_helper-0.3.0.tar.gz
(33.9 kB
view details)
File details
Details for the file naga_helper-0.3.0.tar.gz.
File metadata
- Download URL: naga_helper-0.3.0.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00ede09bfd7810218bafc55717b93cd0286e43b48ab1ad96d6728d871140bb16
|
|
| MD5 |
1f9f1b810f8a561bdd9fdb2184bd8454
|
|
| BLAKE2b-256 |
554fce24769b1e9b73380ecc833d766ab3f0c2f281f4eb87973f6fe84025f07f
|