riichi-scoring: A CLI tool for interpreting and scoring Riichi Mahjong hands.

[ bsd3, cli, data, library, program, utility ] [ Propose Tags ] [ Report a vulnerability ]

This package provides a CLI tool with commands for determining the yaku, fu, and score of a hand in Riichi Mahjong. It can also determine the waits of a partial hand. See README.md for usage, or run: riichi --help


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.3.0.0, 0.3.1.0, 0.4.0.0, 0.4.0.1, 0.4.1.0
Change log CHANGELOG.md
Dependencies base (>=4.19.2.0 && <5), containers (>=0.6.8 && <0.8), mtl (>=2.2.2 && <2.4), riichi-scoring [details]
License BSD-3-Clause
Author ZBW
Maintainer surplussinewaves@gmail.com
Uploaded by ZakWormald at 2026-05-09T08:23:04Z
Category Utility, CLI, Data, Library
Home page https://github.com/SurplusSineWaves/riichi-scoring
Bug tracker https://github.com/SurplusSineWaves/riichi-scoring/issues
Source repo head: git clone https://github.com/SurplusSineWaves/riichi-scoring.git
Distributions
Executables riichi
Downloads 51 total (51 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-05-09 [all 1 reports]

Readme for riichi-scoring-0.4.1.0

[back to package description]

This package provides a CLI tool with commands for determining the yaku, fu, and score of a hand in Riichi Mahjong. It can also determine the waits of a partial hand.

The CLI tool supplied is the riichi command. Help information is as follows:

Command riichi:
    Possible subcommands: yaku, waits, score (default = yaku)

Usage:
    riichi <subcommand> "<hand>"

    "yaku" and "score" subcommands expect a full hand.
    "waits" subcommand expects a hand that is tenpai.

    Example hands include:
        "123p 234m 444p rrrr NN"
        "344556s 444p 222m EE"
        "19p 19s 19m 1p NESWrgw"

    In detail, numeric tiles are denoted (1-9) + (m, p, or s),
    Winds are denoted N, E, S, W, and Dragons are r, w, g.
    A 0 can be used to denote a red five.
    Numeric tiles of the same suit, and honour tiles, can be 
    grouped as seen in the examples (but needn't be).

    In scoring a hand, dora and seat/round wind must be supplied,
    also in this format.

Internal libraries are also exposed.

Hackage page: https://hackage.haskell.org/package/riichi-scoring