Mahjong Classic

Seele01-Flash
By
Mahjong Classic offers 60 levels of traditional mahjong solitaire gameplay with beautiful dragon-themed backgrounds. Match tiles, solve puzzles, and challenge your mind in this timeless classic.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Mahjong Classic". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Realistic "Zen" aesthetic. The game should feature a high-quality wood texture background (simulating a mahogany table). The Mahjong tiles should be 3D block models (ivory front, bamboo green back) with slightly beveled edges to catch light. * **Tile Assets**: Use a single Texture Atlas for all tile faces (Dots, Bamboo, Characters, Winds, Dragons, Flowers, Seasons) to optimize performance. * **Lighting & Camera**: Use a fixed Perspective Camera titled slightly (approx 60 degrees) to show the depth of stacked tiles. Implement soft Directional Light + Ambient Light to create gentle shadows that help players distinguish between tile layers. * **Mobile Optimization**: **Crucial**: Use `THREE.InstancedMesh` for the 144 tiles to reduce draw calls. The game must run at 60fps on mid-range mobile devices. * **Effects**: Simple particle bursts (gold sparks or petals) when tiles are matched and removed. ### 2. Audio Requirements * **BGM**: A looping, relaxing traditional Chinese instrumental track (featuring Guzheng or Pipa) to create a calm atmosphere. * **Sound Effects (SFX)**: * **Select**: A subtle "click" or a slight lifting sound. * **Match/Remove**: A crisp, satisfying "clack" sound of heavy ivory/stone tiles hitting each other. * **Shuffle**: The sound of tiles rumbling/sliding together. * **Victory**: A short, uplifting pentatonic jingle. * **Invalid Move**: A dull thud or error buzz. ### 3. Gameplay Loop * **Core Mechanic**: Standard Mahjong Solitaire (Shanghai) rules. Players select two identical tiles to remove them. * **Special Rule**: "Flowers" can match any Flower; "Seasons" can match any Season. * **Validity Check**: A tile is selectable only if it is "Open" (no tile immediately on top of it, and at least one lateral side—Left or Right—is free). * **Level Structure**: Generate a "Turtle" formation or similar stacked layouts. * **Tools**: Implement 3 specific power-ups with limited usage (3 uses each per level): * **Shuffle**: Rearranges remaining tiles if no moves are available. * **Undo**: Reverts the last move. * **Hint**: Highlights a valid matching pair. * **Win/Loss**: * **Win**: Board is completely cleared. * **Loss**: No valid moves remaining and Player has 0 Shuffles left. ### 4. Mobile Controls & Interaction * **Touch Controls**: Use `THREE.Raycaster` for precision selection. * **Tap**: Select a tile. The selected tile should visually "lift" up slightly (y-axis translation) and glow (emissive material) to indicate selection. * **Tap Background**: Deselect current tile. * **UI Layout**: * **Portrait/Landscape**: Design primarily for Portrait mode but responsive to Landscape. * **HUD**: Place the "Shuffle", "Undo", and "Hint" buttons in a floating dock at the bottom of the screen (easy thumb reach). Button touch targets must be at least 44x44px. * **Score/Level**: Display current Score and Remaining Tiles count at the top. * **Feedback**: * Provide haptic feedback (vibration) via the Vibration API (`navigator.vibrate(10)`) upon successful selection and matching. * If a player taps a blocked tile, slightly shake the tile to indicate it is locked. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Mahjong Classic

Mahjong Classic brings you the pure essence of traditional mahjong solitaire gaming. With an impressive 4.3/5 star rating, this beloved puzzle game strips away unnecessary complications to deliver authentic mahjong gameplay that has captivated players for generations. Featuring 60 carefully crafted levels and stunning traditional tile designs set against an elegant dragon-themed background, Mahjong Classic provides hours of engaging brain-teasing entertainment.

Core Features

Traditional Gameplay Experience

Mahjong Classic stays true to the original mahjong solitaire rules and aesthetics. The game features:

  • 60 Challenging Levels : Each level presents a unique tile pattern and layout to solve
  • Authentic Tile Designs : Traditional mahjong tiles with classic Chinese characters and symbols
  • Beautiful Dragon Background : Elegant oriental-themed visuals that enhance the gaming experience
  • Clean Interface : Uncluttered design that focuses on pure gameplay
  • Progressive Difficulty : Levels gradually increase in complexity to keep you challenged

Helpful Game Tools

The game provides essential tools to enhance your playing experience:

  • 3 Shuffle Options : Rearrange tiles when you're stuck
  • 3 Undo Moves : Take back moves if you make a mistake
  • 3 Hint System : Get guidance when you need help finding matches
  • Reset Function : Start over completely if needed
  • Score Tracking : Monitor your progress and compete for high scores

Cross-Platform Compatibility

Built with HTML5 technology, Mahjong Classic runs smoothly on: - Desktop computers and laptops - Mobile phones and tablets - All modern web browsers - No download or installation required

Game Mechanics

Basic Rules

The objective is simple yet engaging: clear all tiles from the board by matching identical pairs. However, tiles can only be selected if they meet specific criteria:

  • Open Tiles Only : Tiles must not be covered by other tiles above them
  • Free Sides : At least one side (left or right) must be completely free
  • Special Matches : Season tiles can match with any other season tile regardless of the specific image
  • Flower Matching : All flower tiles can be matched together despite different designs

Strategic Elements

Success in Mahjong Classic requires more than just spotting matching tiles:

  • Planning Ahead : Consider which tiles to remove first to unlock more options
  • Layer Management : Understand how removing tiles affects the layers beneath
  • Resource Management : Use your limited shuffles, undos, and hints wisely
  • Pattern Recognition : Learn to quickly identify matching opportunities

Operation Guide

Getting Started

  1. Launch the Game : Open Mahjong Classic in your web browser
  2. Select Level : Choose from 60 available levels or start with level 1
  3. Study the Layout : Take a moment to examine the tile arrangement
  4. Begin Matching : Click on the first tile, then click on its matching pair

Controls and Interface

  • Mouse/Touch : Click or tap tiles to select them
  • Matching : Select two identical open tiles to remove them
  • Tools Panel : Access shuffle, undo, and hint options in the bottom-right corner
  • Score Display : Monitor your current score and time
  • Level Progress : Track which levels you've completed

Advanced Tips

  • Start by removing tiles from the top and edges when possible
  • Look for tiles that are blocking multiple other tiles underneath
  • Save your hint uses for truly difficult situations
  • Try to maintain multiple matching options rather than clearing all pairs of one type immediately

Why Play Mahjong Classic

Mental Benefits

Mahjong Classic isn't just entertainment—it's excellent brain training:

  • Memory Enhancement : Remembering tile locations improves cognitive function
  • Pattern Recognition : Develops visual processing and analytical skills
  • Strategic Thinking : Planning moves ahead enhances problem-solving abilities
  • Concentration : Sustained focus on the game improves attention span
  • Stress Relief : The meditative nature of matching tiles provides relaxation

Perfect for All Players

Whether you're a mahjong veteran or complete beginner, Mahjong Classic offers:

  • Easy Learning Curve : Simple rules that anyone can understand quickly
  • Scalable Challenge : 60 levels ensure long-term engagement
  • No Time Pressure : Play at your own pace without rushing
  • Instant Accessibility : No registration required to start playing
  • Family Friendly : Suitable for players of all ages

Authentic Experience

Unlike modern variations with flashy effects, Mahjong Classic preserves the pure, traditional mahjong solitaire experience that has made this game a timeless favorite across cultures and generations.

Frequently Asked Questions (FAQ)