Mahjongg Solitaire

Seele01-Flash
By
Mahjongg Solitaire is a classic tile-matching puzzle game featuring traditional mahjong rules with beautiful modern 3D visuals. Match pairs of identical tiles to clear the board in this relaxing yet challenging brain game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Mahjongg Solitaire**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Traditional yet polished pseudo-3D aesthetic. Use a top-down isometric camera view (orthographic projection preferred for gameplay clarity on mobile screens). * **Mahjong Tiles:** * Create **144** unique tile meshes. The geometry should be a simple beveled box (cream/white top face, bamboo-green or orange curved back). * **Textures:** High-contrast SVG or high-res PNG textures for the tile faces: Dots (Circles), Bamboo (Sticks), Characters (Kanji), Winds, Dragons, and Special Flower/Season tiles. * **Special Tiles:** Highlight "Flower" and "Season" tiles with a subtle colored glow (blue or green tint) on the texture to indicate they can match within their category even if the image isn't identical. * **Environment:** * **Background:** A deep, calming emerald green or dark teal fabric texture (simulating a felt table). Use a subtle vignette effect to focus attention on the center board. * **Lighting:** Soft, ambient studio lighting with a slight directional shadow (cast from top-left to bottom-right) to give depth to the tile stack layers. * **Mobile Optimization:** Use instanced mesh rendering (`THREE.InstancedMesh`) for the tiles to keep draw calls low. Use a single texture atlas for all tile faces to minimize texture binding. ### 2. Audio Requirements * **BGM (Background Music):** A looping, tranquil Asian-inspired instrumental track. Use soft instruments like the Guzheng (zither), bamboo flute, or gentle piano. The tempo should be slow and relaxing (60-80 BPM). * **SFX (Sound Effects):** * **Tile Select:** A crisp, satisfying "clack" sound (like Bakelite hitting wood). * **Tile Match:** A melodic chime or a softer "slide and click" sound. * **Invalid Move:** A dull, muted wooden "thud" or error buzz. * **Hint:** A magical "shimmer" sound. * **Game Over/Win:** A short, celebratory orchestral flourish. ### 3. Gameplay Loop * **Setup:** Arrange 144 tiles in the classic "Turtle" or "Pyramid" formation (layered 3D structure). Ensure the Z-axis layering is physically accurate for raycasting. * **Matching Logic:** * Players select two matching tiles to remove them. * **Validity Check:** A tile is only selectable if it is "free": 1. No tile is directly on top of it (Z-axis check). 2. It has an empty space immediately to its Left OR Right. * **Special Rules:** * **Seasons & Flowers:** These tiles match any other tile in their respective group (e.g., Summer matches Winter). * **No Shuffle:** There is no shuffle mechanic. The game relies on strategy. * **Timer:** Implement a 10-minute countdown timer visible in the UI. * **Win/Loss:** * **Win:** All tiles are cleared. * **Loss:** Time runs out OR no valid moves remain (and no shuffles exist). * **Scoring:** Award points per match. Bonus points for time remaining upon completion. ### 4. Mobile Controls & Interaction * **Touch Controls:** * **Tap to Select:** Raycaster must be precise. Increase the hit-test radius slightly for fingers to avoid frustration on small mobile screens. * **Highlighting:** When a tile is tapped, highlight it (e.g., yellow border or brightness up). If a second tile is tapped: * If Match: Trigger removal animation (scale down to 0 or fly off-screen). * If No Match: Deselect first, select second. * **Screen Adaptation:** * **Responsive Camera:** Auto-adjust camera zoom based on aspect ratio (Portrait vs. Landscape) to ensure the full board fits within safe areas. * **UI Layout:** * **HUD:** Place "Score", "Time", and "Matches Left" text at the top, clear of the board. * **Buttons:** Place "Hint", "Pause", and "Restart" buttons at the bottom of the screen. Button touch targets must be at least 44x44px. * **Feedback:** * **Haptic:** Trigger a light vibration (Taptic Engine) on successful match. * **Visual:** When "Hint" is pressed, flash a valid pair of tiles for 2 seconds. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Mahjongg Solitaire is a captivating online puzzle game that brings the timeless appeal of traditional mahjong to your browser. This beautifully crafted game features 144 intricately designed tiles arranged in classic formations, challenging players to match identical pairs while following traditional mahjong solitaire rules. With its perfect blend of strategy and pattern recognition, this game offers both relaxation and mental stimulation.

The game maintains authentic mahjong gameplay while incorporating modern visual enhancements and user-friendly features. Each session is timed to add excitement, but the overall pace remains comfortable and stress-free, making it perfect for both quick breaks and extended gaming sessions.

Core Features

Traditional Mahjong Experience

Experience authentic mahjong solitaire with 144 traditional tiles divided into three primary suits: Dots (featuring circles), Bamboo (featuring lines), and Characters (featuring Chinese symbols). The game preserves the classical tile designs while presenting them with crisp, modern 3D graphics.

Smart Tile System

The game features an intelligent tile selection system that clearly indicates which tiles are "free" to match. Only tiles with at least one open side (left or right) and no tiles stacked above them can be selected. Special tiles with colored backgrounds can be matched at any time, adding strategic depth to gameplay.

Helpful Game Features

  • Unlimited Hints : Get assistance when you're stuck with the built-in hint system
  • Real-time Counter : See how many pairs are available at the top of your screen
  • Timed Gameplay : 10-minute sessions with scoring based on completion and speed
  • No Shuffle Option : Each layout has a specific solution, enhancing the puzzle challenge
  • Cross-Platform Support : Play seamlessly on desktop and mobile devices

Beautiful Visual Design

Enjoy stunning 3D graphics with detailed tile artwork and smooth animations. The game's visual design enhances the traditional mahjong experience while maintaining excellent readability and user interface clarity.

Game Rules and Strategy

Basic Matching Rules

To succeed in Mahjongg Solitaire, you must match pairs of identical tiles. However, not all tiles are immediately available for matching. A tile is considered "free" when: - No other tiles are stacked on top of it - At least one side (left or right) is completely open - It has an identical pair that is also free

Winning Strategy Tips

  1. Plan Ahead : Look for tiles that, once removed, will free up multiple other tiles
  2. Focus on Blocked Tiles : Prioritize removing tiles that are blocking access to many others
  3. Use Special Tiles Wisely : Remember that colored background tiles can be matched anytime
  4. Time Management : Balance speed with careful consideration of moves

How to Play

Basic Controls

The game uses simple mouse controls - just click on tiles to select and match them. The intuitive interface makes it easy for players of all skill levels to jump right in.

Step-by-Step Gameplay

  1. Examine the Layout : Study the tile arrangement and identify potential matches
  2. Find Free Tiles : Look for tiles that meet the freedom criteria
  3. Match Pairs : Click on identical free tiles to remove them from the board
  4. Use Hints : When stuck, use the hint feature to reveal possible moves
  5. Clear the Board : Continue matching until all tiles are removed or time runs out

Scoring System

Your final score depends on two factors: - Tiles Matched : Points awarded for each successful pair removal - Completion Bonus : Extra points based on how much of the board you cleared

Why Play Mahjongg Solitaire

Brain Training Benefits

Mahjongg Solitaire is more than entertainment - it's an excellent brain training exercise. The game enhances: - Pattern Recognition : Identifying matching tiles among similar designs - Spatial Reasoning : Understanding tile positions and accessibility - Strategic Planning : Thinking ahead to optimize tile removal sequences - Memory Skills : Remembering tile locations and potential matches

Perfect for Everyone

Whether you're a complete beginner or an experienced mahjong player, this game offers the right level of challenge. The unlimited hints make it accessible to newcomers, while the no-shuffle rule and time pressure provide depth for experienced players.

Stress-Free Gaming

Unlike competitive games, Mahjongg Solitaire offers a peaceful gaming experience. The relaxing pace and beautiful visuals make it perfect for unwinding after a busy day or taking a mental break during work.

Free and Accessible

Play completely free with no downloads required. The game runs smoothly in any modern web browser and works perfectly on both computers and mobile devices.

Frequently Asked Questions (FAQ)