RiichiKit

Mahjong AI History: Early Bots, Suphx, NAGA and Mortal

Follow mahjong AI from opponent models and simulation to NAGA, Suphx and Mortal. Learn what changed, what was measured and why strong play is not perfect play.

Intermediate6 min readPublished Updated

Photo: HandigeHarry at Dutch Wikipedia · Public domain

Mahjong AI progressed from programs that estimated opponents and simulated possible continuations to systems trained on human decisions and game outcomes.

NAGA demonstrated strong play learned from expert records; Suphx combined deep reinforcement learning with additional training techniques; Mortal made an open-source project available for play and review. These are different research and software milestones, not successive proofs of perfect mahjong.

Why was mahjong difficult for a computer?

You cannot see the other players' hands or the next draw. A move also affects more than your immediate chance to finish: it can expose you to another player or change your final position.

The 2015 research by Naoki Mizukami and Yoshimasa Tsuruoka treats those hidden states and the presence of several opponents as central problems.

That explains why counting your own useful tiles cannot settle the whole game. It answers a valuable local question, while a playing program must also choose calls, respond to threats and pursue an overall result. Playing against bots covers the practical difference between a training opponent and a strong competitive program.

What did earlier opponent models do?

Mizukami and Tsuruoka's 2015 paper built predictions for whether an opponent was ready, which tiles could complete their hand and how much that hand might score.

Those predictions were learned from expert game records and used in Monte Carlo simulation. In plain language, the program sampled possible continuations using estimates of what the opponents might hold and do.

This was already more than a list of fixed discard rules. Its useful historical lesson is the combination of learning and simulation. It also shows why 'old AI versus learning AI' is too crude a division: learned information was part of this earlier system, even though its overall design differed from later neural players.

What was distinctive about NAGA?

Dwango's January 2019 technical account describes NAGA learning from Tenhou Phoenix-room records. Separate neural models handled discards, calls, riichi and kans, using the information visible at the decision. It dates NAGA's approved Tenhou bot participation to 22 October 2018 and reports a peak rank of eight dan.

Supervised learning and defensive play

This is supervised learningtraining neural models to imitate recorded moves from strong human games: recorded human choices provide examples for the system to learn from. Dwango explains that defensive behaviour could emerge from those choices without a separate hand-written push-or-fold rule.

The account nevertheless mentions some special judgement rules, so it would be inaccurate to describe that version as entirely free of programmed exceptions.

What did Suphx add?

The Suphx paper, published in 2020, describes a Microsoft Research Asia system built with reinforcement learningtraining an agent through rewards and outcomes from played games rather than imitating human moves alone, where training uses the consequences of played games.

Its techniques connect hand-level decisions with eventual results, use extra information to guide training, and adapt the policy during play. The last technique was omitted from the Tenhou evaluation because it took too long for the platform's action limits.

Extra information used by a training teacher is not the same as seeing hidden tiles during an ordinary evaluated game. In its Tenhou expert-room evaluation, Suphx reached a record rank of ten dan. That is a concrete competitive achievement under the reported conditions, rather than a proof of perfect decisions.

Documented Tenhou Peak Dan Ranks of Milestone Bots

  1. Tenhou Phoenix room entry7 dan
  2. NAGA (2018-19 supervised)8 dan
  3. Suphx (2020 RL)10 dan
Reported peak Tenhou ranks from Dwango's 2019 technical post and Microsoft Research Asia's 2020 paper.

Which description best distinguishes reinforcement learning from simply copying recorded human choices?

Show the answer

Training uses rewards or outcomes from played games

Reinforcement learning uses outcomes to improve behaviour. Human examples and other training methods can still be combined with it; the label does not imply either hidden-information access in normal play or perfect decisions.

Where does Mortal fit?

Mortal's creator recorded the release of its source code in April 2022. A later update distinguished that code from the trained model parameters, which were not being released at that time.

This distinction matters: the instructions for training a system and the learned numbers that make a particular trained version behave are different things.

The service released Mortal 4.0 in November 2023 and the 4.1 series in August 2024. The reviewer lets players revisit decisions from four-player East–South games and see which model assessed them. In the same period, Tencent reported that its LuckyJ player reached 10-dan on Tenhou in 2023.

MilestoneMain idea to understand
Opponent models and simulationEstimate hidden states, then sample possible continuations
NAGA's published early designLearn choices from expert human records
SuphxUse game outcomes and specialised training techniques
MortalAn open-source learning project that can support review tools
The methods overlap; this is a comparison of documented approaches, not a ranking of current strength.

Three Mahjong AI Paradigms Compared

DimensionSimulationSupervisedReinforcement
Core signalOpponent models + rolloutsExpert human logsGame outcomes & rewards
StrengthExplicit wait estimatesFast human-like defenseDiscovers novel lines
Trade-offSlow under move timersBounded by human dataHeavy training compute
Modern mahjong bots often blend supervised pre-training with reinforcement learning.

How should a player read an AI milestone?

Ask which version was tested, under which rules, against which opponents and by what measure. Rank, an estimated long-run rank and agreement with an AI's moves answer different questions.

Stable rank explained and reading AI review ratings separate those measures so that a useful historical result does not become a misleading personal grade.

Common questions

Has AI solved riichi mahjong?

The research described here reports strong play, not a proof of optimal action in every possible position. Performance depends on the rules, opponents and evaluation method.

Are NAGA, Suphx and Mortal the same AI?

No. They are separate projects with distinct development histories, even though their methods can share ideas such as learning from games.

Does open-source AI mean its strongest trained model is downloadable?

Not automatically. Mortal's creator explicitly distinguished publishing code from publishing trained parameters, so check the particular project's release materials.

RiichiKit Pro · founding

Have an AI analyse your own games

Deep Review re-reads every decision in a game with a stronger neural network and shows where it disagrees with you. One a day is free with an account. Pro is for players who review every session.

  • 30 Deep Reviews a day with the neural engine
  • Unlimited drills built from your own mistakes
  • Your leaks and trends across every game you import

Analyse a game free →See RiichiKit Pro →

RiichiKit ProMember passUS$4.99 a month · founding priceFree: 1 Deep Review a day

RiichiKit

Practise this in RiichiKit

Put what you just read to work with engine-verified drills, interactive course chapters and table tools.

Read this in日本語简体中文繁體中文

Keep reading