Skip to main content
Formal Specification

Hong Kong Fast Mahjong (Horse Racing Mahjong) — Formal Specification

Hong Kong · tile · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 4
# Paau Maa Zai — AI-optimized specification ## General idea A high-turnover, self-draw-only Mahjong variant based on Hong Kong *Paau Maa Zai* (Horse Racing Mahjong). Players assemble a standard 14-tile winning hand (4 melds + 1 pair) while sequence claims (*chi*) and discard wins (*sik wu*) are strictly banned, triggering instant cash bonuses for Kongs and post-win randomized "horse" multiplier tile draws. ## Formal model - **Abstraction taken:** None required. The tile set, draw-and-discard loop, meld validation, and horse-matching payouts form a complete discrete combinatorial game. - **Player/agent count:** 4 players (Seats: 0 = East/Dealer, 1 = South, 2 = West, 3 = North). - **Turn model:** Sequential counter-clockwise turns with interruptive priority claims for Pung (*pung*) and Kong (*gung*). ## Formal rules R1. **Tile Set & Dealing:** Standard 136 tiles (108 suit tiles: Bamboo, Characters, Dots; 16 Wind tiles: East, South, West, North; 12 Dragon tiles: Red, Green, White). Dealer receives 14 tiles; other 3 players receive 13 tiles. R2. **Restricted Discard Claims:** - **No Chows (不吃):** Players CANNOT claim an opponent's discard to form a 3-tile sequence. All sequences must be formed via private draws. - **Pungs & Kongs (准碰准槓):** Claiming an opponent's discard to form a triplet (`PUNG`) or quad (`KONG`) is permitted. R3. **Kong Instant Payouts:** - *Concealed Kong (暗槓):* Player reveals 4 self-drawn identical tiles → all 3 opponents immediately pay base bounty 2×B. - *Discard Kong (明槓):* Player claims discard to complete 4-of-a-kind → discarding opponent pays 2×B. - *Added Kong (補槓):* Player adds self-drawn 4th tile to an exposed triplet → all 3 opponents pay 1×B. - Every Kong triggers 1 replacement draw from the dead wall tail. R4. **Winning Condition (Self-Draw Only / 只准自摸):** - A player can ONLY declare a win by self-drawing their 14th tile (`ZI_MO`). - Standard hand validation: 4 melds (sequences or triplets) + 1 pair (or special Seven Pairs). - Claiming an opponent's discard to win is strictly forbidden and triggers a foul penalty. - Base win payout: Each of the 3 opponents pays base amount W. R5. **Catching Horses (獎馬):** - Immediately after a valid `ZI_MO` win, the winner draws 2 "horse" tiles from the remaining wall. - Horse seat correspondence: - East (Seat 0): Tile numbers 1, 5, 9, or East Wind. - South (Seat 1): Tile numbers 2, 6, or South Wind. - West (Seat 2): Tile numbers 3, 7, or West Wind. - North (Seat 3): Tile numbers 4, 8, or North Wind. - Dragon tiles match the Dealer (Seat 0). - Each horse tile matching the winner's seat wind awards an extra 1×W payout from all 3 opponents. R6. **Wall Exhaustion (流局):** If the live wall reaches 0 tiles without a self-drawn win, the hand is a draw; all intermediate Kong bounties remain retained by their earners. R7. [gap-fill] Tile distribution: Exactly 136 tiles; 14 tiles reserved for the dead wall; live wall contains 122 draw tiles. R8. [gap-fill] Base payout values: Base Kong payout B=10 points; base win payout W=20 points; each matching horse tile adds +20 points per opponent. R9. [gap-fill] Pure Suit Feed Penalty: If Player A discards 3 tiles that are all claimed as exposed Pungs by Player B, and Player B subsequently self-draws a Pure One-Suit hand, Player A must pay the full settlement for all 3 opponents. R10. [gap-fill] Loop-breaking termination: Wall tile count strictly decreases by 1 on every standard turn; hand terminates in at most 122 tile draws. ## Edge cases - **Tie at the end condition:** Not applicable; winning is strictly self-drawn on active player's turn, guaranteeing a single unique winner per hand. - **A player with no legal move:** On drawing a tile, an agent always has at least one valid tile to discard. - **Repetition / cycles:** Wall tiles decrease monotonically toward 0, preventing infinite game loops. - **Simultaneous claims on the same resource or position:** Since discard-wins and chows are disabled, the only potential collision is two players calling Pung on the same discard. Pung priority is resolved by turn order proximity (counter-clockwise from discarder). - **Player elimination mid-round:** Not applicable (all 4 players participate through entire hand). - **Resource exhaustion:** Wall depletion triggers deterministic draw (R6). - **Termination guarantee:** Guaranteed by finite tile wall with strictly decreasing live tile count per draw. ## State representation - **Persistent state:** `scores: List[int]`, `dealer_seat: int`, `round_index: int`. - **Per-player state:** - `hand: Multiset[Tile]` (hidden from opponents) - `exposed_melds: List[Meld]` (public) - `discards: List[Tile]` (public) - `seat_wind: int in {0, 1, 2, 3}` - **Per-turn ephemeral state:** - `active_player: int` - `drawn_tile: Optional[Tile]` - `last_discard: Optional[Tile]` - `wall_remaining: int` - `dead_wall_remaining: int` - **Observable information:** Imperfect information. Private hands and tile wall order are hidden. Exposed melds, discard rivers, remaining wall count, and player scores are fully public. ## Action space - `draw_tile()`: Engine action drawing from live wall. - `discard(tile)`: Parameters: `tile in hand`. Preconditions: active player holds 14 tiles. - `declare_pung(discarded_tile)`: Preconditions: player holds 2 matching tiles in hand. - `declare_kong(type, tile)`: Parameters: `type in {CONCEALED, DISCARD, ADDED}`. Preconditions: valid 4-tile combination. - `declare_zi_mo()`: Preconditions: active player holds valid 14-tile winning hand. - `pass()`: Declines claim on opponent discard. ## Playability notes - **Single-player-vs-AI:** Excellent testbed for hidden-information search (e.g. Information Set MCTS, DQN). Absence of sequence chows dramatically simplifies discard claim trees. - **Group games (n>4):** Strictly a 4-player game; additional players sit out and rotate in as dealers change. - **Physical-skill games:** Pure tile strategy game; zero physical dexterity required. - **What is lost in the adaptation:** Clatter of shuffling heavy melamine tiles, dramatic tile slamming (*paak pai*), and parlor betting atmosphere. ## Implementation hints - Represent tiles as integers 0..33 (34 distinct tile types × 4 copies). - Hand evaluation is fast: check for 4 melds + 1 pair using standard recursive backtracking or bitmask lookup tables. - Branching factor: At most 14 discard choices per turn, plus binary decisions on Pung/Kong opportunities. - First milestone: 4-player headless simulator with heuristic agents verifying no-chow enforcement, Kong payouts, and horse tile matching.

Download as JSON

Download the full game corpus entry for this game as structured JSON.

Download JSON
Cite this page

Hong Kong Fast Mahjong (Horse Racing Mahjong) (Hong Kong). (n.d.). Games of Countries. https://gamesofcountries.com/games/hk-hong-kong/paau-maa-zai

@misc{gamesofcountries-hk-hong-kong-paau-maa-zai,
  title = {Hong Kong Fast Mahjong (Horse Racing Mahjong) (Hong Kong)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/hk-hong-kong/paau-maa-zai}
}