Classic Mahjong

Seele01-Flash
By
Classic Mahjong is the ultimate mahjong solitaire experience featuring beautiful traditional tiles, smooth animations, and challenging levels. Match identical tiles to clear the board in this timeless puzzle game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Classic Mahjong Solitaire**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a clean, sophisticated, semi-realistic 3D aesthetic. The game should feel like a premium board game. * **Tile Models:** Generate 3D Mahjong tiles with slightly rounded corners (bevel geometry). The tiles should have a dual-layer texture: an ivory-white top face for the symbol and a bamboo-green or amber backing. * **Tile Textures:** Use high-contrast procedural textures or canvas-drawn icons for standard Mahjong suites (Dots, Bamboo, Characters, Winds, Dragons, Flowers). The symbols must be sharp and legible on small mobile screens. * **Background:** Implement a deep green felt-like texture with a subtle, seamless traditional wave pattern (Seigaiha) to mimic a high-quality gaming table. This provides good contrast against the white tiles. * **Lighting:** Use soft, warm ambient lighting combined with a directional light casting subtle shadows to the bottom-right of each tile, enhancing depth perception without obscuring the symbols. * **Visual Feedback:** When a tile is selected, apply a subtle golden emissive glow or a slight lift animation (tween Y-position). When a match is made, emit a small particle burst (like sparkles or cherry blossom petals) before the tiles fade out. ### 2. Audio Requirements * **Background Music (BGM):** Synthesize a relaxing, Zen-inspired loop using traditional instruments like a Guzheng or Koto, mixed with soft ambient nature sounds (distant flowing water or wind chimes). It should be non-intrusive to aid concentration. * **Sound Effects (SFX):** * *Tap/Select:* A crisp "clack" sound, mimicking a hard resin tile hitting a wooden table. * *Match Success:* A harmonious pentatonic chime or a satisfying "click-lock" sound. * *Invalid Move:* A dull, wooden "thud" or a gentle error buzz. * *Shuffle/Hint:* The sound of multiple tiles being shuffled together. ### 3. Gameplay Loop * **Core Mechanic:** Implement standard Mahjong Solitaire (Shanghai) rules. Players must match pairs of identical "free" tiles to remove them from the board. A tile is "free" if it has no tile on top of it and possesses a free edge on either its left or right side. * **Level Layout:** Start with the classic "Turtle" or "Pyramid" formation, stacking tiles in 3D layers. Ensure the camera angle is isometric or top-down (approx 60-degree angle) to clearly show stacking depth. * **Timer & Scoring:** Include a countdown timer (e.g., 5 minutes). Award points for matches, with multipliers for speed (Combo chains). * **Win/Loss Condition:** * *Win:* All tiles are cleared from the board. * *Loss:* No more valid moves are possible, or the time runs out. * **Utilities:** Include a "Shuffle" button (rearranges remaining tiles if stuck) and a "Hint" button (highlights a valid pair). ### 4. Mobile Controls & Interaction * **Orientation:** Force **Landscape Mode** to maximize the playing area for the wide tile layout. * **Touch Input:** * Raycasting logic must be optimized for touch events (`touchstart` instead of just `click`). * Hit-testing precision is crucial; increase the invisible bounding box around tiles slightly to accommodate "fat finger" errors on smaller screens. * **Camera Controls:** Allow simple pinch-to-zoom and two-finger pan to help players see obscured tiles, but restrict the bounds so the board never leaves the screen. * **UI Layout:** * Place utility buttons (Pause, Shuffle, Hint) on the right edge or bottom corners, ensuring they are large (min 48x48px) and easily tappable with thumbs. * Display the Score and Timer clearly at the top center. * **Haptics:** Trigger a light vibration (using `navigator.vibrate`) upon successfully selecting a tile, and a slightly stronger vibration when a match is completed. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Classic Mahjong brings the beloved traditional tile-matching game to your browser with stunning visuals and engaging gameplay. This mahjong solitaire variant challenges players to clear beautifully designed boards by matching identical tiles, combining strategy with pattern recognition skills. The game features authentic Chinese mahjong tiles with traditional symbols, creating an immersive experience that honors the classic game's heritage.

Core Features

Beautiful Traditional Design

Experience mahjong as it was meant to be played with authentic tile artwork featuring traditional Chinese characters and symbols. The game's visual design pays homage to the classic mahjong aesthetic while providing modern, crisp graphics that look stunning on any device.

Full Landscape Mode

Enjoy the complete mahjong experience with full landscape orientation, allowing you to see the entire tile layout clearly. This enhanced view makes it easier to spot matching pairs and plan your strategy effectively.

Smooth Animations

Every tile flip and match comes with pleasing animations that make the gameplay satisfying and visually appealing. These polished effects enhance the overall gaming experience without slowing down the pace.

Multiple Challenging Levels

Progress through numerous carefully designed levels, each presenting unique tile arrangements and increasing difficulty. Every layout offers a fresh challenge that will test your observation skills and strategic thinking.

Timer Challenge

Race against time to complete each level, adding an exciting element of urgency to the classic gameplay. The timer keeps you engaged and motivated to improve your matching speed and efficiency.

Gameplay Mechanics

Classic Mahjong follows traditional mahjong solitaire rules. Your objective is to clear the board by matching pairs of identical tiles. Only tiles that are free (not blocked by other tiles on both sides) can be selected and matched. The challenge lies in choosing the right pairs to avoid creating impossible situations where remaining tiles cannot be matched.

Operation Guide

Basic Controls

  • Left Mouse Button : Select and flip tiles
  • Click : Select your first tile, then click its matching pair to remove both
  • Visual Feedback : Available tiles are highlighted when you hover over them

Strategy Tips

  • Always prioritize tiles that will free up other tiles when removed
  • Look for tiles that appear in stacks - remove the top tiles first
  • Pay attention to the timer but don't rush into poor matches
  • Scan the entire board before making your first move
  • Focus on tiles that have fewer matches available on the board

Why Play Classic Mahjong

Classic Mahjong offers the perfect blend of relaxation and mental stimulation. It's an ideal game for players who enjoy puzzle challenges that require both patience and strategic thinking. The game helps improve pattern recognition, concentration, and memory skills while providing a calming, meditative gaming experience.

The free-to-play format means you can enjoy unlimited gameplay sessions without any cost. Whether you're a mahjong veteran or new to tile-matching games, Classic Mahjong provides an accessible yet challenging experience that grows with your skills.

The browser-based format ensures instant access - no downloads, no installations, just pure mahjong enjoyment whenever you want to play.

Frequently Asked Questions (FAQ)