Skip to main content

Mahjong Hands

A web application for validating and analyzing Mahjong hands. It provides real-time feedback, intelligent grouping of tile combinations, and educational resources for players of all levels.

Key Features

  • Real-time hand validation for standard 4-set + 1-pair and 7-pairs win conditions
  • Intelligent grouping that identifies Pungs, Kongs, and Chows with collision resolution
  • Interactive tile management with drag-and-drop support
  • Flower tile tracking
  • Fully responsive design for desktop and mobile

Pages

RouteDescription
/Hand Builder -- the interactive playground for testing combinations
/rulesComprehensive primer on basic Mahjong gameplay
/glossaryVisual guide to all Mahjong tiles and terms
/scoringFan system scoring guide
/strategyTips, tenpai patterns, and mastery principles
/aboutAbout the project

Tech Stack

LayerTechnology
FrameworkReact 19
Build ToolVite 7
LanguageTypeScript 5
RoutingReact Router DOM 7
Drag and Drop@dnd-kit
IconsLucide React
StylingVanilla CSS with design tokens and CSS Modules
TestingJest with Testing Library
DeploymentCloudflare Workers

Design

The application uses a dark theme with green gradient highlights. Self-hosted Inter font with preloading for fast first contentful paint. Tile assets are optimized SVGs.