A Fast Algorithm for Computing the Deficiency Number of a Mahjong Hand

08/15/2021
by   Xueqing Yan, et al.
0

The tile-based multiplayer game Mahjong is widely played in Asia and has also become increasingly popular worldwide. Face-to-face or online, each player begins with a hand of 13 tiles and players draw and discard tiles in turn until they complete a winning hand. An important notion in Mahjong is the deficiency number (a.k.a. shanten number in Japanese Mahjong) of a hand, which estimates how many tile changes are necessary to complete the hand into a winning hand. The deficiency number plays an essential role in major decision-making tasks such as selecting a tile to discard. This paper proposes a fast algorithm for computing the deficiency number of a Mahjong hand. Compared with the baseline algorithm, the new algorithm is usually 100 times faster and, more importantly, respects the agent's knowledge about available tiles. The algorithm can be used as a basic procedure in all Mahjong variants by both rule-based and machine learning-based Mahjong AI.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/08/2019

Let's Play Mahjong!

Mahjong is a very popular tile-based game commonly played by four player...
research
10/12/2021

The Crew: The Quest for Planet Nine is NP-Complete

In this paper, we study the cooperative card game, The Crew: The Quest f...
research
11/07/2019

Towards An Angry-Birds-like Game System for Promoting Mental Well-being of Players Using Art-Therapy-embedded PCG

This paper presents an integration of a game system and the art therapy ...
research
01/23/2013

Bayesian Poker

Poker is ideal for testing automated reasoning under uncertainty. It int...
research
12/24/2019

Bidding in Spades

We present a Spades bidding algorithm that is superior to recreational h...
research
10/30/2020

Interleaving Fast and Slow Decision Making

The "Thinking, Fast and Slow" paradigm of Kahneman proposes that we use ...
research
02/16/2018

A complete hand-drawn sketch vectorization framework

Vectorizing hand-drawn sketches is a challenging task, which is of param...

Please sign up or login with your details

Forgot password? Click here to reset