Black and White Mahjong 3

Seele01-Flash
By
Black and White Mahjong 3 offers a refreshing twist on traditional mahjong solitaire. Match tiles with opposite background colors in this relaxing puzzle game featuring 30 challenging levels.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Black and White Mahjong 3". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-contrast, elegant aesthetic. The scene should look like a premium digital board game. * **Tile Models:** Create 3D rectangular tiles with slightly beveled edges to catch light. * **Material A (Black Tiles):** Glossy, obsidian-like black material (StandardMaterial with high smoothness/specular). * **Material B (White Tiles):** Creamy, ceramic-like white material. * **Symbols:** Classic Mahjong iconography (Bamboo, Characters/Wan, Circles, Winds, Dragons, Flowers). Symbols must be colorful (Red, Green, Blue) to stand out against both black and white backgrounds. Use texture mapping on the top face. * **Background:** A subtle, dark charcoal or deep slate grey gradient background to ensure the white tiles don't glare and black tiles remain visible via specular highlights. * **Lighting:** Use a 3-point lighting setup. A strong Directional Light to cast defined shadows (giving depth to the tile stacks) and an Ambient Light to soften contrast. * **Performance:** Use efficient geometry (BoxGeometry). Texture atlases should be power-of-two (e.g., 1024x1024) for mobile GPU optimization. ### 2. Audio Requirements * **BGM:** A relaxing, Zen-inspired track featuring soft piano or traditional Guzheng (Chinese zither), playing at a low tempo to aid concentration. * **Sound Effects (SFX):** * **Select:** A crisp "clack" sound (like stone or heavy plastic). * **Match/Clear:** A satisfying, harmonious chime or soft "ding". * **Shuffle:** The sound of tiles sliding over each other. * **Error:** A subtle dull thud if a player tries to select a blocked tile. ### 3. Gameplay Loop * **Core Mechanic (The Twist):** Standard Mahjong Solitaire rules apply for "free" tiles (a tile is free if it has no tile on top AND has an empty space on either its left or right). * **Matching Rule:** Players must match two free tiles that share the **same Symbol** but have **Opposite Background Colors** (one Black tile + one White tile). Matching two Black tiles or two White tiles is forbidden. * **Level Design:** Implement logic to parse 3D array structures representing the 30 different tile layouts (e.g., Turtle, Pyramid, Fortress). * **Game Flow:** 1. Start Level -> Timer begins counting down. 2. Player selects Tile A (highlight). Player selects Tile B. 3. If Match is Valid (Same Symbol + Opposite Color): Remove tiles, add points. 4. **Win Condition:** Clear all tiles before the timer ends. 5. **Lose Condition:** Timer runs out or no moves remaining (and no shuffles left). * **Power-ups:** Implement "Shuffle," "Hint," and "Undo" buttons. Using these should deduct a small amount from the score. ### 4. Mobile Controls & Interaction * **Touch Controls:** Use `Raycaster` for precise touch detection. Support `touchstart` events for immediate responsiveness (lower latency than `click`). * **Visual Feedback:** * **Selection:** When a tile is tapped, it should lift slightly (y-axis translation) and glow (Emissive property or OutlinePass) to indicate selection. * **Blocked:** If a blocked tile is tapped, shake the tile slightly to indicate it cannot be played. * **UI Layout:** * **Orientation:** Landscape orientation preferred for Mahjong layouts, but ensure the camera adjusts FOV if Portrait is detected. * **HUD:** Place Score, Level, and Timer at the top. Place action buttons (Shuffle, Hint, Undo) on the right side (for landscape) or bottom (for portrait), ensuring buttons are at least 44x44 pixels for touch accessibility. * **Gestures:** Allow single-finger drag to rotate the board slightly (limited angle) or pan, and two-finger pinch to zoom (optional, but helpful for small screens). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Black and White Mahjong 3 is an innovative online mahjong puzzle game that puts a creative spin on the beloved classic. Unlike traditional mahjong where you match identical tiles, this game challenges you to match tiles with the same symbol but opposite background colors - pairing black tiles with white tiles and vice versa. With a 3.7-star rating from players, this engaging puzzle game offers hours of strategic entertainment.

Core Features

Unique Gameplay Mechanics

The standout feature of Black and White Mahjong 3 is its innovative matching system. Instead of finding exact tile duplicates, you'll need to locate tiles with matching symbols but contrasting backgrounds. This adds an extra layer of strategy and visual challenge to the traditional mahjong experience.

Comprehensive Game Content

  • 30 Progressive Levels : Each level increases in difficulty, providing long-lasting entertainment
  • Timer-Based Challenges : Complete each level before time runs out to advance
  • Scoring System : Earn points for successful matches and compete on leaderboards
  • Relaxing Atmosphere : Classic background design with pleasant, soothing music

Player-Friendly Features

  • Completely Free : Play the full game without any cost or hidden fees
  • No Download Required : Instant play through your web browser
  • Mobile Optimized : Perfect for smartphones and tablets
  • HTML5 Technology : Smooth performance across all modern devices
  • Easy to Learn : Simple rules make it accessible for players of all skill levels

Helpful Game Tools

The game includes several assistance options: - Shuffle Feature : Reorganize tiles when stuck - Hint System : Get suggestions for possible matches - Undo Function : Reverse your last move if needed

Note: Using these tools will reduce your final score, adding strategic depth to when and how you use them.

Game Mechanics

Basic Rules

To play Black and White Mahjong 3, you need to understand the core matching principle. Click on two tiles that have: - The same symbol or character - Opposite background colors (one black, one white) - Both tiles must be "open" (not covered by other tiles) - At least one side of each tile must be free

Tile Selection Strategy

Success in this game requires careful observation and planning. Look for symbol matches first, then check the background colors to ensure they're opposite. The game provides visual feedback - tiles that can't be selected won't show an outline when clicked.

How to Play

Getting Started

  1. Launch the Game : Click play to begin the first level
  2. Study the Layout : Examine the tile arrangement and identify potential matches
  3. Select Your First Pair : Click on two matching symbols with opposite backgrounds
  4. Continue Matching : Clear pairs systematically to reveal more tiles
  5. Beat the Clock : Complete the level before the timer expires
  6. Progress Forward : Advance to increasingly challenging layouts

Winning Strategy Tips

  • Start with tiles on the edges and top layers
  • Plan ahead to avoid blocking important tiles
  • Use the hint feature sparingly to maintain your score
  • Focus on clearing tiles that will free up the most options

Why Play This Game

Black and White Mahjong 3 combines the timeless appeal of mahjong with an innovative twist that keeps the gameplay fresh and engaging. The game's accessibility makes it perfect for both mahjong veterans and newcomers to the genre. Its mobile-friendly design means you can enjoy relaxing puzzle sessions anywhere, whether you have five minutes or an hour to spare.

The progressive difficulty across 30 levels ensures you'll always face an appropriate challenge, while the scoring system and leaderboards add competitive elements for those seeking to test their skills against other players worldwide.

Frequently Asked Questions (FAQ)