riichi-tools-rs

v0.0.68

Build Status GitHub code size in bytes License

A tool library for riichi mahjong written in Rust, made mostly to be used as a WASM component.

Lots of inspiration from other mahjong tools, like https://euophrys.itch.io/mahjong-efficiency-trainer, http://tenhou.net/2/, http://kobalab.net/majiang/dapai.html etc.

Showcase / frontend of this library can be found at https://riichi.harphield.com/tools/

Roadmap

Hand representation parsing

Hand::from_text() method accepts a string representation in the following format:

Some examples: - 123m44456888s678p - 456s11133z(456m1)(456p0) - 4z(p1z1)(k2z)(s3z3)(p6z2)