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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for naga_helper-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692783a2e87d45a1a3b3d24c959e45ff4ced86a8c613a85183197063a6a96fba |
|
MD5 | 2c4eb1e8c990362b0e15859b97f4c015 |
|
BLAKE2b-256 | b2f9de9d9a9871f92a6960168b3b15685cb476f00e8cdac2249e5b90bd7255cc |