Mahjong Gardens

Seele01-Flash
By
Mahjong Gardens is a relaxing online puzzle game featuring classic mahjong solitaire gameplay in a beautiful garden setting. Match identical tiles to clear the board in this free browser-based game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Mahjong Gardens". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A peaceful, Zen-inspired 3D garden environment. Use a soft, lush green color palette (referencing the "Mahjong Gardens" banner). The background should feature a procedural skybox with stylized low-poly trees, gently falling leaves, or flying birds to add life without distracting from gameplay. * **Tile Models:** Create 3D Mahjong tiles (rectangular blocks) with a bone/ivory white top face and a bamboo-green backing. Use **InstancedMesh** for the tiles to ensure 60FPS performance on mobile devices. * **Textures:** High-contrast, traditional Mahjong iconography (Bamboo, Dots, Characters, Winds, Dragons, Flowers, Seasons). Ensure symbols are legible on small screens. * **Effects:** Add a soft bloom effect for selected tiles. When tiles are matched, they should dissolve with a gentle particle effect (e.g., green leaves or light sparkles). * **Camera:** Isometric perspective by default. ### 2. Audio Requirements * **BGM:** A calming, looping track featuring traditional instruments like the Guzheng (zither) or Dizi (bamboo flute), blended with ambient nature sounds (chirping birds, flowing water, wind in trees). * **SFX:** * **Select:** A crisp, wooden "clack" or soft stone tapping sound. * **Match:** A harmonious chime or harp glissando. * **Invalid Move:** A subtle dull thud (no harsh error noises). * **Shuffle:** The sound of tiles cascading or rattling together. * **Win:** A short, uplifting oriental orchestral flourish. ### 3. Gameplay Loop * **Setup:** Initialize the board with a classic "Turtle" or "Pyramid" stacked layout (144 tiles total). * **Matching Logic:** Players tap a tile to select it. Tapping a second matching tile clears both. * *Constraint 1:* A tile can only be selected if it has a "free edge" (no tile immediately to its left OR right). * *Constraint 2:* A tile cannot be selected if it is partially covered by another tile. * *Special Case:* Flower and Season tiles match with any tile of their respective category, not just identical images. * **Tools:** * **Shuffle:** Randomizes the positions of the remaining tiles on the board. * **Hint:** Highlights a pair of currently available matching tiles with a glowing border. * **Win/Loss:** The game is won when the board is empty. The game is lost (or prompts a shuffle) when no valid moves remain. ### 4. Mobile Controls & Interaction * **Touch Interaction:** Use a `Raycaster` for precise touch detection. * **Tap:** Select/Deselect tile. * **Feedback:** When touched, the tile should slightly lift up (y-axis translation) or glow to indicate selection. * **Camera Controls:** * Implement **OrbitControls** but limit the polar angle to prevent looking from underneath the board. * Include UI buttons (Left/Right Arrows) in the bottom-left corner to rotate the board 90 degrees smoothly for better visibility of hidden tiles, as per the original game description. * **UI Layout:** * **Orientation:** Responsive design, optimized for Landscape mode but playable in Portrait. * **HUD:** Place action buttons (Shuffle, Hint, Rotate) in a bottom bar. Ensure buttons have a minimum touch target of 44x44px. * **Score/Timer:** Display unobtrusively at the top corners. * **Haptic Feedback:** Trigger a light vibration (using `navigator.vibrate`) when a valid pair is matched. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Mahjong Gardens is a captivating puzzle game that brings the timeless appeal of mahjong solitaire to your browser with a stunning garden theme. This free online game combines traditional tile-matching mechanics with peaceful natural visuals, creating a perfect gaming experience for puzzle enthusiasts of all skill levels.

The game features classic mahjong solitaire rules where players clear tiles from a layered board by finding and matching identical pairs. With its intuitive gameplay and beautiful garden aesthetics, Mahjong Gardens offers both relaxation and mental stimulation in one engaging package.

Core Features

Classic Mahjong Solitaire Gameplay

Mahjong Gardens follows traditional solitaire mahjong rules with strategic tile pairing. You must carefully analyze the board layout and plan your moves to successfully clear all tiles while following the specific matching requirements.

Beautiful Garden Theme

The game presents a serene garden environment with lush greenery, peaceful birds, and natural elements that create a calming atmosphere perfect for focused puzzle-solving sessions.

Helpful Game Tools

To enhance your gaming experience, Mahjong Gardens includes several useful features: - Hint System : Get suggestions for available tile pairs when you're stuck - View Rotation : Change your perspective of the board using arrow buttons for better tile visibility - Shuffle Option : Reorganize remaining tiles when no moves are available

Cross-Platform Compatibility

Play seamlessly across all devices - the game works perfectly on desktop computers, tablets, and smartphones through any modern web browser without requiring downloads or installations.

Game Rules and Strategy

Basic Matching Rules

Tile pairing in Mahjong Gardens follows specific conditions: - Only identical tiles can be matched and removed - At least one tile in the pair must have a completely free left or right edge - Tiles cannot be matched if they are covered by other tiles above them - Strategic planning is essential as blocked tiles must be freed before they can be paired

Winning Conditions

The game ends in victory when all tiles have been successfully paired and cleared from the board. However, the game also ends if you exhaust all possible moves and available shuffles without clearing the board.

Controls and Interface

Simple Click Controls

Mahjong Gardens uses intuitive point-and-click mechanics: - Click or Tap : Select tiles you want to pair together - Button Controls : Use the interface buttons at the bottom of the screen - Arrow Buttons : Rotate the board view for better tile access - Hint Button : Reveal one available matching pair - Shuffle Button : Rearrange remaining tiles when needed

User-Friendly Interface

The clean, organized interface ensures that all game controls are easily accessible while maintaining focus on the beautiful game board and garden scenery.

Why Play Mahjong Gardens

This game perfectly combines mental exercise with relaxation, making it ideal for players seeking both entertainment and cognitive stimulation. The garden theme creates a peaceful gaming environment that reduces stress while the puzzle mechanics keep your mind sharp and engaged.

Whether you're a mahjong veteran or new to tile-matching games, Mahjong Gardens offers adjustable difficulty through its hint and shuffle systems, ensuring an enjoyable experience for players of all skill levels. The completely free, browser-based format means you can enjoy quality puzzle gaming anytime, anywhere, without any barriers or costs.

Frequently Asked Questions (FAQ)