fujian-mahjong-validator

Validate Fujian Mahjong hands, sets, winning conditions, and Gold tile rules.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Teng-AI/mahjong --skill fujian-mahjong-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fujian-mahjong-validator
Source: https://github.com/Teng-AI/mahjong/tree/main/.claude/skills/fujian-mahjong-validator
Command: npx skills add https://github.com/Teng-AI/mahjong --skill fujian-mahjong-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fujian Mahjong validator checks the correctness of game logic for hands, sets, winning conditions, and Gold tile rules, aiding developers in ensuring reliable gameplay outcomes.

Core Features & Use Cases

  • Validate whether a hand is winning under Fujian rules, including Gold substitutions.
  • Verify sets and sequences (chows, pungs) are valid and detect illegal moves.
  • Compute accurate scores for a winning hand, including bonus rules like All One Suit and Golden Pair.
  • Validate move legality for calls (chow, pung) and win calls, and ensure correct priority handling.

Quick Start

Provide a Fujian Mahjong hand to the validator and request a win determination and score breakdown.

Frequently Asked Questions about fujian-mahjong-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Fujian Mahjong winning hands and check Gold tile substitutions?

To validate Fujian Mahjong winning hands, you provide the hand data to the validator, which checks win detection, set validity, and Gold tile substitution rules to determine if it is a winning hand. It returns a win determination and score breakdown.

How are scores calculated for Fujian Mahjong and does it include bonus rules?

Scores for Fujian Mahjong are calculated by computing accurate values for the winning hand, including specific bonus rules like All One Suit and Golden Pair, to provide a complete score breakdown.

Can I verify move legality for chow and pung calls in Fujian Mahjong?

Yes, you can verify move legality for chow and pung calls in Fujian Mahjong. The validator checks calls and win calls to ensure correct priority handling and detect illegal moves.

What is the best way to test Fujian Mahjong game logic code for sets and sequences?

The best way to test Fujian Mahjong game logic code is to use a validator to verify sets and sequences like chows and pungs. It checks correctness to aid developers in ensuring reliable gameplay outcomes.

Does the Fujian Mahjong validator support detecting invalid combinations and illegal moves?

Yes, the Fujian Mahjong validator supports detecting invalid combinations and illegal moves. It verifies sets, sequences, and move legality to detect illegal actions during gameplay.