Mahjong AI
/install mahjong-ai
้บปๅฐ AI ๅฉๆ ๐
ๅท้บป๏ผๅๅท้บปๅฐ๏ผAI ๅบ็้กพ้ฎใๆ็ งๅๆ็๏ผๅๆๆไผๅบ็ใ
่งๅ๏ผๅท้บป๏ผ่กๆๅฐๅบ๏ผ
- ๅชๆ ็ญใๆกใไธ ไธ้จ๏ผๅ ฑ 108 ๅผ ๏ผๆฏ็ง 1-9 ๅ 4 ๅผ ๏ผ
- ๆฏไบบ 13 ๅผ ๆ็๏ผๆธ็ๅ 14 ๅผ ้ๆฉๅบ็
- ่ก็ๆกไปถ๏ผ4 ็ป้ขๅญ๏ผ้กบๅญ/ๅปๅญ๏ผ+ 1 ๅฏนๅฐ๏ผ้ๅคด๏ผ
- ็นๆฎ่กๆณ๏ผไธๅฏนใ้พไธๅฏนใๆธ ไธ่ฒใๅฏนๅฏน่ก็ญ
- ่กๆๅฐๅบ๏ผไธไบบ่กไบ็ปง็ปญๆ๏ผ็ดๅฐๅฉไธไบบๆฒก่ก
ๅทฅไฝๆต็จ
Step 1: ่ฏๅซ็้ข๏ผๆ็ ง๏ผ
ๆถๅฐ็ ง็ๅ๏ผ็จ่ง่ง่ฏๅซ๏ผ
- ๆ็๏ผ13ๆ14ๅผ ๏ผ
- ๅบไธๅทฒๆๅบ็็๏ผ็ๆฑ /ๆฒณ็๏ผ
- ๅทฒ็ขฐ/ๆ ็็
็ผ็ ๆ ผๅผ๏ผ
- ไธๅญ๏ผ1m 2m ... 9m
- ็ญๅญ๏ผ1p 2p ... 9p
- ๆกๅญ๏ผ1s 2s ... 9s
ๅๅบ่ฏๅซ็ปๆ่ฎฉ็จๆท็กฎ่ฎคๅๅๅๆใ
Step 2: ่ฟ่กๅๆ
python3 scripts/mahjong_analyze.py \
--hand "1m,2m,3m,5m,5m,3p,4p,7p,8p,9p,2s,3s,4s,6s" \
--discard "1p,2p,5p,5p,9s,9s" \
--meld "6m,6m,6m"
ๅๆฐ๏ผ
--hand/-H๏ผๆ็๏ผๅฟ ๅกซ๏ผ13ๆ14ๅผ ๏ผ--discard/-d๏ผๅบไธๅทฒๆๅบ็็๏ผๅฏ้๏ผ--meld/-m๏ผๅทฒ็ขฐ/ๆ ็็๏ผๅฏ้๏ผ
Step 3: ่พๅบๅปบ่ฎฎ
- 14ๅผ โ ๆจ่ๆๅชๅผ ๏ผ้ๅฎๅ จๅบฆ๐ข๐ก๐ด + ๅฌ็ๅผ ๆฐ
- 13ๅผ โ ๆพ็คบๅฌไปไน็ + ๅฉไฝๅผ ๆฐ
- ๅฎๅ จๅบฆๅบไบๅบ้ขๅทฒๅบ็่ฎก็ฎ๏ผๅบ่ถๅค่ถๅฎๅ จใ19่พนๅผ ๆดๅฎๅ จ๏ผ
ๅท้บป็นๆฎ่งๅ
- ไธ่ฝๅ๏ผๅช่ฝ็ขฐ/ๆ /่ก
- ่กๆๅฐๅบ๏ผไธไบบ่กไบ็ปง็ปญๆ
- ็ชๆฐ๏ผๆธ ไธ่ฒ4็ชใไธๅฏน4็ชใ้พไธๅฏน8็ชใๅฏนๅฏน่ก2็ช
ๅ่
- ่ฏฆ็ป็็๏ผ่ง
references/mahjong_theory.md
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install mahjong-ai - After installation, invoke the skill by name or use
/mahjong-ai - Provide required inputs per the skill's parameter spec and get structured output
What is Mahjong AI?
AI Mahjong Assistant ๐ โ Snap a photo of your hand, get optimal discard suggestions. Sichuan Mahjong rules (Blood Battle / ่กๆๅฐๅบ). Supports tile recognition... It is an AI Agent Skill for Claude Code / OpenClaw, with 186 downloads so far.
How do I install Mahjong AI?
Run "/install mahjong-ai" in the OpenClaw or Claude Code chat to install it in one step โ no extra setup required.
Is Mahjong AI free?
Yes, Mahjong AI is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Mahjong AI support?
Mahjong AI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Mahjong AI?
It is built and maintained by sceneun1ty (@sceneun1ty); the current version is v1.0.1.