killerducky / killer_mortal_gui

15 stars 8 forks source link

Introduction

GUI for https://mjai.ekyu.moe

Table of Contents

Dealin Rate

The Mortal engine does not have a dealin rate output, but in Options you can opt-in to showing dealin rates approximated by simple heuristics.

Overview of the algorithm

Riichi trap suji

Here is are some example dealin rates of a situation where they Riichi on 5m

                     Total  Ryankan Kanchan  Tanki Shanpon 
No-suji          2s:  9.5%   7.5%    0.3%    0.4%   1.2%
Riichi trap suji 2m:  6.0%    -      4.3%    0.4%   1.2%
Normal suji      2p:  2.0%    -      0.3%    0.4%   1.2%

The odds of a 13m Kanchan wait are much higher than the other 13 waits. The 2m is still safer than no-suji 2s, but not by much.

Notes for translators/developers

The GUI is simple html+javascript, but you still must run a local webserver to load the json file. Use e.g. vscode liveserver or python3 -m http.server.

You also need a local json file. Run a review on the mjai site, and then you can use the utility script curl_mjai.py to download the json locally:

./curl_mjai.py -u https://mjai.ekyu.moe/killerducky/?data=/report/9572f900340af356.json

It will output some URLs for reference, the last one is an example URL to point your browser to locally. Modify the local IP/port for your system.

Credits