Mahjong Coach

AI Review & Training System

Page 1 of 8 — Onboarding & Rule Selection
01 — Welcome & Rule Pack Selection
9:41
●●●

Mahjong Coach

AI-powered hand review for every game you play

πŸ€„
Select Your Rule Set
πŸ€„ Guangdong Standard
πŸ€… Sichuan Blood Battle
πŸ€† Hunan Red Dragon
πŸ€‡ More Variants Coming
Guangdong
Sichuan
Hunan
International
πŸ€„

Guangdong Standard

Widest national coverage Β· Simplest rules Β· Ideal starting point

02 — 10-Game Initial Snapshot Preview
9:41
●●●
Your First 10-Game Snapshot
10
Games Played
34%
Win Rate
22%
Deal-In Rate
64%
Tile Efficiency
34%

Win Rate

3 wins / 10 games Β· Below avg

Win / Loss per Game (G1–G10)

G1
G2
G3
G4
G5
G6
G7
G8
G9
G10
Top Mistake: Over-held η™Ό (Green Dragon) across 4 games
πŸ”’

Unlock Full 30-Game Profile

Basic Training β€” see the why behind every hand

01 — Recent Games History
9:41
●●●
Recent Games Β· Guangdong Standard
28
Games Logged
39%
Win Rate
13%
Self-Draw
18%
Deal-In Rate

Today

14:32

Game #28 Β· Won Β· Peng Peng He

Self-draw Β· +32 pts Β· 18 rounds Β· 3 flags

Today

11:05

Game #27 Β· Lost Β· Dealt into Dealer

Over-held η™Ό Β· βˆ’16 pts Β· 22 rounds Β· 1 flag

Yesterday

20:48

Game #26 Β· Won Β· Qi Dui (Seven Pairs)

Self-draw Β· +64 pts Β· 15 rounds Β· Clean

Yesterday

18:20

Game #25 Β· Lost Β· Opponent Self-Draw

Concealed Kong Β· βˆ’8 pts Β· 31 rounds Β· 2 flags

AI Review Ready: 3 critical moments flagged in G#28
02 — Game #28 Replay Overview
9:41
●●●
Game #28 Β· Peng Peng He Β· Won

+32

Points Earned This Game

↑ Above your avg +19

18

Total Rounds Played

↑ Fast finish Β· efficient

78%

Tile Efficiency

Above your 30-game avg of 64%

Cumulative Score by Round

R4
R8
R11
R15
R18
3 AI Coaching Flags Detected Β· 1 excellent play
01 — Critical Discard Breakdown
9:41
●●●
Round 11 Β· Critical Discard Moment
πŸ€‡ 1-Bam
πŸ€ˆ 2-Bam
πŸ€‰ 3-Bam
πŸ€™ 1-Dot
πŸ€™ 1-Dot
πŸ€› 3-Dot
πŸ€„ δΈ­ Zhong

87%

Discard Decision Score

↑ +22% vs your avg

87%

Decision Quality

You discarded δΈ­ (Red Dragon) β€” correct

πŸ€„

Discard: Red Dragon (δΈ­)

Danger Tile Judgment

Correct

SETS

Tenpai +2 tiles

REPS

2.3 sec

MIN

87% optimal

CAL

AI: Excellent β€” clears danger tile, opens bamboo 2-sided wait
02 — AI Coach Full Commentary
9:41
●●●
AI Coach Β· Game #28 Β· Full Review
⚠️

Mistake Β· Round 8 Β· Held η™Ό 3 Extra Turns

Value Tile Management

High Risk

SETS

3 rounds held

REPS

Over-retained

MIN

βˆ’22% win rate impact

CAL

βœ…

Good Play Β· Round 11 Β· Pivot to Peng Path

Adaptive Hand Shaping

Optimal

SETS

Saved 4 tiles

REPS

1.8 sec

MIN

+31% win rate impact

CAL

πŸ’‘

Missed Β· Round 14 Β· Hidden Qi Dui Path

Pair Recognition

Overlooked

SETS

2 tiles short

REPS

Not taken

MIN

Seven-pairs route available

CAL

72%

Overall Game Score

Good Β· Top 30% of your 28 games

01 — Daily Training Card Deck
9:41
●●●
Today's Training Β· 5 Cards Due
60%

Daily Deck Progress

3 of 5 cards reviewed today

πŸ€™

Tenpai Recognition Β· 3-Sided Bamboo Wait

Wait Pattern Reading

Due

SETS

3 hands

REPS

Active drill

MIN

Flagged from G#26

CAL

πŸ€„

Danger Tile Judgment Β· Honor Tiles Under Threat

Defensive Awareness

New Card

SETS

5 scenarios

REPS

5 min

MIN

From G#27 mistake

CAL

πŸ€‡

Efficiency Drill Β· Bamboo Sequence Building

Hand Construction

Review

SETS

2 rounds

REPS

3 min

MIN

Streak: 4 days

CAL

Advanced Tier: Unlocks full spaced-repetition drill history
02 — Mistake Drill Library
9:41
●●●
Your Mistake Library Β· 18 Saved Drills
All
Discard
Tenpai
Defense
Peng/Kong
πŸ€…

Over-held η™Ό (Green Dragon)

Value Tile Management

Repeated

SETS

4 games

REPS

Top Mistake

MIN

#1 deal-in cause

CAL

πŸ€™

Chose 1-Sided vs Available 2-Sided Wait

Wait Optimization

Recurring

SETS

3 games

REPS

Intermediate

MIN

βˆ’18% tile efficiency

CAL

πŸ€„

Premature Peng Blocking Self-Draw Path

Meld Timing

Common

SETS

5 games

REPS

High impact

MIN

Win rate βˆ’11%

CAL

18

Total Drills in Library

↑ βˆ’3 resolved this week

01 — 30-Game Complete Style Profile
9:41
●●●
Your 30-Game Complete Profile
38%
Win Rate
14%
Self-Draw %
19%
Deal-In Rate
67%
Tile Efficiency
76%

Aggression Index

Attack 76% of all tenpai opportunities

44%

Defense Score

Below avg β€” primary deal-in source

βš”οΈ Aggressive
πŸ€„ Honor Hunter
πŸ’¨ Fast Finisher
Aggressive
Balanced
Defensive
Opportunist
Style: Aggressive Honor Hunter Β· Risk-Reward Seeker
02 — Win Rate Curve & Growth Metrics
9:41
●●●
Growth Dashboard Β· 30 Games

Win Rate by 10-Game Block

G1–10
G11–20
G21–30

Deal-In Rate Trend (Improving)

G1–10
G11–20
G21–30

+15%

Win Rate Growth Across 30 Games

↑ Training is working

βˆ’11%

Deal-In Rate Reduction

↑ Defense improving

Ready for Advanced Training: Consistent improvement detected
01 — Platform KPI Overview
app.example.com/coach-analytics-dashboard
MENU
Mahjong Coach Β· Platform Analytics
12,847
Active Users
284,392
Games Reviewed
1.2M
Hands Analyzed
Β₯980K
MRR

Daily Active Users β€” Last 30 Days

Wk 1
Wk 2
Wk 3
Wk 4

Revenue Split by Subscription Tier

Trial Β₯9
Basic Β₯29
Advanced Β₯68
Pro Β₯198

68%

Trial-to-Paid Conversion Rate

↑ +8% vs last month

4.2

Avg Games Reviewed per User per Week

↑ Strong engagement signal

02 — Hand Efficiency & Regional Sessions
app.example.com/coach-analytics-dashboard
MENU
Hand Efficiency Insights Β· All Users

Most Common Mistake Types (Platform-Wide)

Value Tile Over-hold
Suboptimal Wait
Premature Peng
Missed Defense
Kong Timing Error

67.3%

Platform Avg Tile Efficiency

↑ +3.1% vs last quarter

21.4%

Platform Avg Deal-In Rate

↑ βˆ’2.8% training effect visible

Live

Now

Guangdong Β· 8,241 Active Sessions

Peak hours 19:00–22:00 Β· 3,400 concurrent avg

Live

Now

Sichuan Blood Battle Β· 3,102 Sessions

Fastest growing variant Β· Blood Battle rules active

Live

Now

Hunan Red Dragon Β· 1,504 Sessions

High deal-in cohort β€” training impact most visible here

01 — Active Rule Pack Registry
app.example.com/rule-pack-manager
MENU
Rule Pack Manager Β· 3 Active Variants
πŸ€„

Guangdong Standard

National Coverage Β· Core Pack

8,241

SETS

active users

REPS

v1.2.0 Β· Stable

MIN

24 hand types

CAL

πŸ€…

Sichuan Blood Battle

Southwest China Β· Major Variant

3,102

SETS

active users

REPS

v1.1.4 Β· Stable

MIN

19 hand types

CAL

πŸ€†

Hunan Red Dragon

Hunan Province Β· Regional Pack

1,504

SETS

active users

REPS

v1.0.8 Β· Beta

MIN

21 hand types

CAL

65%

Market Variant Coverage

65% of Chinese regional markets served

In Development: Japanese Riichi Β· Taiwanese Mahjong Β· EMA Standard
02 — Guangdong Rule Configuration
app.example.com/rule-pack-manager
MENU
Guangdong Standard Β· Rule Configuration
Scoring
Special Hands
Kong Rules
Flower Tiles
πŸ€„

Zi Mo (Self-Draw Bonus)

All players pay double when winner self-draws

Enabled
πŸ€…

Guo Zhong Jie β€” Dealer Retention on Red Dragon

Dealer retains seat if they win with Zhong (δΈ­)

Enabled
πŸ€†

Flower Tiles Scoring Multiplier

Regional flower tiles add scoring weight per variant

Optional
Enable Flower Tile Scoring
Allow Concealed Kong Redraw
Qi Dui (Seven Pairs) Special Hand

24

Recognized Hand Types Configured

↑ Guangdong Standard

Feature Stack & Deliverables

Complete overview of confirmed features, deliverable items, and technical architecture for Mahjong Coach.

πŸ—οΈ

Tech Stack

Swift / SwiftUIPython / FastAPITensorFlow LitePostgreSQLRedisReact / Next.js
⚑

Core Technologies

🍎
Swift / SwiftUI β€” Native iOS tile renderer, replay animator, paywall, and training card UI
🐍
Python / FastAPI β€” Game log ingestion API, hand parsing engine, coaching report generator
🧠
TensorFlow Lite β€” On-device quantized model for discard scoring and mistake classification
🐘
PostgreSQL β€” Game log storage, hand history, player profiles, and rule pack registry
⚑
Redis β€” Real-time hand analysis queue, session cache, leaderboard snapshots
βš›οΈ
React / Next.js β€” Web admin dashboard for platform analytics and rule pack management
πŸ“¦

V1 Deliverables Checklist

  • iOS SwiftUI app with full Guangdong, Sichuan, and Hunan Mahjong rule support
  • AI hand analysis engine with per-discard decision scoring and flag generation
  • 10-game initial profile with style tag inference and top-mistake detection
  • 30-game complete profile with win rate curve and five-dimension radar chart
  • Training Card system with spaced-repetition scheduling from flagged game moments
  • Growth Dashboard with deal-in trend tracking and improvement velocity metrics
  • Four-tier subscription system: Trial / Basic Training / Advanced Training / Personal Trainer
  • Web admin panel with platform KPI dashboard and hand efficiency analytics
  • Rule Pack SDK and configuration UI for regional variant management
  • App Store submission with StoreKit 2 in-app purchase and TestFlight beta pipeline
πŸ”§

Architecture Layers

Mobile Client
Swift / SwiftUI
Tile board renderer, game log importer, hand replay viewer, training card deck, subscription paywall, growth dashboard
AI Coaching Engine
Python + TensorFlow Lite
Discard decision evaluator, tenpai pattern recognizer, mistake classifier, style tag inferencer, drill card recommender
API & Business Logic
FastAPI + PostgreSQL
Game log parser, 10/30-game profile builder, subscription validator, rule pack registry, coaching report scheduler
Data & Caching Layer
PostgreSQL + Redis
Hand history store, player statistics aggregation, session cache, real-time analysis queue, tile efficiency snapshots
Web Admin Platform
Next.js + Recharts
Platform KPI dashboard, hand efficiency analytics, rule pack CRUD editor, A/B test manager, revenue and conversion reporting