🎮 Complete Game
Full Mahjong Solitaire with 144 tiles, multiple layouts, and authentic rules including special flower/season matching.
🌸 Orchid Theme
Beautiful orchid-themed tiles featuring Phalaenopsis, Cattleya, Dendrobium, and 5 other popular genera with elegant styling.
♿ Accessible
Full keyboard navigation, screen reader support, high contrast mode, and ARIA labels for complete accessibility.
📱 Responsive
Optimized for desktop, tablet, and mobile with touch support and scalable UI elements that work everywhere.
🎨 Customizable
Three built-in themes (FCOS, Neutral, High Contrast) plus multiple challenging layouts from Easy to Expert.
⚡ Performance
Lightweight vanilla JavaScript, GPU-accelerated animations, and optimized for 60fps gameplay on all devices.
🔗 Easy Integration
Embed the Orchid Mahjong widget anywhere with just two lines of code:
<div id="orchid-mahjong" data-theme="fcos" data-layout="orchid"></div>
<script src="https://your-domain.com/static/js/orchid-mahjong.js"></script>
📋 Configuration Options
Themes: fcos, neutral, highContrast
Choose from three carefully designed color schemes
Layouts: turtle, dragon, pyramid, orchid, greenhouse, butterfly, fortress, garland
8 distinct layouts with varying difficulty levels
Settings: data-sound="true", data-highlights="true"
Enable sound effects and tile highlighting
🔧 JavaScript API
const game = OrchidMahjong.init('#container', options)
Initialize widget with custom options
game.setTheme('neutral')
Change theme programmatically
game.on('win', (data) => { ... })
Listen to game events: init, match, win, shuffle, hint, undo, redo
game.getStats()
Get player statistics and best scores
🌟 Features Included
- ✅ Complete 144-tile Mahjong Solitaire game
- ✅ 8 unique layouts with difficulty progression
- ✅ 3 accessibility-focused themes
- ✅ Full keyboard navigation and screen reader support
- ✅ Touch and mouse input with responsive design
- ✅ Undo/Redo system with multi-step history
- ✅ Smart hint system and solvable shuffle
- ✅ Local statistics and progress saving
- ✅ Timer, scoring, and move tracking
- ✅ Orchid-themed tiles with botanical accuracy
- ✅ GPU-accelerated animations and transitions
- ✅ No external dependencies or CDN requirements