10 Mahjong - Math Puzzle Game

Seele01-Flash
By
10 Mahjong combines classic mahjong gameplay with math challenges. Instead of matching identical tiles, find pairs that add up to 10 in this unique puzzle experience with 15 progressive levels.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**10 Mahjong**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Cyberpunk / Neon aesthetic (based on the reference image). Dark, glossy background to contrast with bright tile elements. * **Tiles (The Core Asset):** * Create 3D rectangular tiles with slightly rounded corners (bevel). * **Material:** Dark, glossy black plastic body. The face of the tile should feature **glowing neon numbers** (1 through 9) and traditional Mahjong suit symbols (Dots, Bamboo, Characters) simplified into vector-like neon icons (Cyan, Magenta, Lime Green). * **Visual State Logic:** * **Active/Selectable:** The tile face has high emissivity (grows bright). * **Blocked/Inactive:** The tile looks dimmed/darkened (lower opacity or overlaid with a shadow mesh), per the gameplay description. * **Selected:** The tile lifts slightly on the Y-axis and changes border color to White. * **Environment:** A subtle, dark digital grid or a "starfield" background. * **Camera:** Isometric or Top-Down Perspective camera, auto-scaled to fit the entire board within the screen width (vertical layout preferred for mobile). * **Performance:** Use simple geometries. If possible, use a single texture atlas for all tile faces to reduce draw calls. ### 2. Audio Requirements * **BGM:** A chill, low-tempo **Synthwave** or **Lo-Fi Electronic** track that helps concentration (looping). * **Sound Effects (SFX):** * **Select:** A soft digital "blip" or glass tap. * **Match (Success):** A harmonious digital chime or "laser zap" followed by a satisfying particle dissolve sound. * **Error (Invalid Match):** A low-pitched "buzz" or dull thud. * **Shuffle/Hint:** A "woosh" sound effect. * **Win:** An upbeat arcade fanfare. ### 3. Gameplay Loop * **Level Generation:** Generate a 3D stacked structure of tiles (classic Mahjong layouts like "Turtle" or "Pyramid"). Ensure the total number of tiles is even and solvable. * **Matching Logic (The Unique Twist):** * The player taps two "open" tiles. * **Condition 1 (Availability):** A tile is "open" only if it has no tile on top of it AND has at least one free side (left or right). * **Condition 2 (The Math):** The values of the two selected tiles must **add up to exactly 10** (e.g., 1+9, 2+8, 5+5). * **Condition 3 (Suit):** Ideally, the tiles should belong to the same suit (e.g., 3 of Dots + 7 of Dots), unless no moves remain, then allow cross-suit matching (optional, but keep strict by default). * **Win Condition:** Clear all tiles from the board. * **Loss Condition:** The **Countdown Timer** reaches zero. * **Tools:** * **Shuffle:** Rearranges remaining tiles if no moves are visible. * **Hint:** Highlights a valid pair of tiles for 3 seconds. ### 4. Mobile Controls & Interaction * **Input System:** Use `Raycaster` for touch/click detection. * **Tap:** Select/Deselect a tile. * **Screen Orientation:** **Portrait Mode** preferred (to allow stacking depth), but responsive to Landscape. * **Visual Feedback:** * When a match is made, play a **Particle Explosion** effect (neon sparks) at the location of the tiles before removing them. * Display a floating text "+10" or "Match!" upon success. * **UI Overlay (HTML/CSS):** * **Top Bar:** Current Level, Score, and a bold **Countdown Timer**. * **Bottom Bar:** Large, thumb-friendly buttons for **"Shuffle"** and **"Hint"**. * **End Screen:** A modal showing "Level Complete" or "Game Over" with a "Next Level / Retry" button. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

10 Mahjong is an innovative twist on the beloved classic mahjong game that combines traditional tile-matching with mathematical thinking. Rated 4.2/5 by over 2013 players, this puzzle game challenges you to find pairs of tiles that add up to 10 rather than matching identical symbols. With 15 progressively challenging levels, each featuring unique patterns and layouts, 10 Mahjong offers hours of brain-teasing entertainment.

Core Features

Mathematical Mahjong Innovation

This game revolutionizes traditional mahjong by introducing arithmetic challenges. Instead of seeking identical tiles, players must identify numerical combinations that sum to 10, creating a fresh and educational gaming experience.

Progressive Difficulty System

The game features 15 carefully designed levels , each with increasing complexity: - Unique tile patterns and layouts for every level - Escalating difficulty that keeps players engaged - Time-based challenges that test both speed and accuracy - Automatic score submission and ranking system

Smart Visual Guidance

The game provides helpful visual cues to enhance gameplay: - Lit-up tiles indicate available moves - Shadowed tiles show blocked pieces - Clear indication of open tiles with at least one free side - Intuitive interface designed for quick decision-making

Helpful Game Tools

To assist players through challenging moments, the game includes: - Hint system for when you're stuck - Shuffle option to rearrange tiles - Timer display to track remaining time - Score tracking across all levels

Game Mechanics

Basic Rules

The objective is simple yet engaging: find two tiles of the same type that add up to exactly 10. However, there are important constraints: - Only "open" tiles can be selected (at least one side must be free) - Tiles cannot be covered by other pieces - Both tiles in a pair must be the same suit or type - Complete all tile pairs before the timer expires

Winning Strategy

Success requires a combination of: - Quick math calculations to identify valid pairs - Spatial awareness to locate open tiles - Time management to beat level timers - Pattern recognition to spot efficient clearing paths

Operation Guide

Controls

  • Mouse Click : Select tiles to form pairs
  • Hint Button : Reveals a possible move when stuck
  • Shuffle Button : Rearranges available tiles
  • Menu Access : View high scores and game options

Gameplay Flow

  1. Examine the tile layout and identify open pieces
  2. Look for numerical pairs that sum to 10
  3. Click on two matching tiles that meet the criteria
  4. Continue until all tiles are cleared or time expires
  5. Progress through all 15 levels to complete the game

Platform Compatibility

10 Mahjong is built with HTML5 technology, ensuring broad compatibility: - Web Browsers : Chrome, Firefox, Safari, Edge - Desktop : Windows, Mac, Linux systems - Mobile Devices : iOS and Android phones/tablets - No Download Required : Play instantly in your browser

Why Play 10 Mahjong

This game offers the perfect blend of entertainment and education . It sharpens mathematical skills while providing the relaxing, meditative quality that makes mahjong so popular worldwide. The progressive difficulty ensures that both beginners and experienced puzzle enthusiasts will find appropriate challenges.

The competitive element adds replay value - compare your scores with other players on the global leaderboard and strive to improve your performance across all 15 levels. Whether you're looking for a quick mental exercise or an extended puzzle session, 10 Mahjong delivers engaging gameplay that exercises both logical thinking and numerical fluency.

Frequently Asked Questions (FAQ)