Math Mahjong Relax

Seele01-Flash
By
Math Mahjong Relax combines the classic tile-matching gameplay of Mahjong with engaging mathematical challenges. Train your brain through 36 progressively challenging levels that test both visual pattern recognition and mathematical skills.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Math Mahjong Relax**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Create a clean, flat 2D vector style within a 3D environment (2.5D aesthetic). The art direction should be cheerful and "educational cute," similar to casual mobile puzzle games. * **The Mahjong Tiles**: * Generate thick, rounded rectangular 3D tiles with a soft white top surface and a teal/dark cyan side/bottom (mimicking the reference image). * The symbols on the tiles should include bold Numbers (0-9), basic Arithmetic Expressions (e.g., "1+2", "5-3", "2x2"), and simple Geometric Shapes (triangle, circle, square) for variety. * Use distinct, high-contrast colors for the symbols (bright green for numbers, orange for equations, pink for shapes) to ensure readability on small screens. * **Background**: A soothing, dynamic background featuring a "sunburst" or radial ray effect in light cyan and teal shades (matching the screenshot's vibe). It should rotate slowly to add life without distracting the player. * **Performance**: Use simple geometry for tiles (BoxGeometry with rounded edges or a custom shader for bevels). Reuse geometries and materials (InstancedMesh) for the Mahjong layout to ensure 60fps performance on mobile devices. ### 2. Audio Requirements * **BGM (Background Music)**: A relaxing, lo-fi hip hop or soft acoustic guitar track. It should be repetitive but non-intrusive, encouraging focus and a "zen" state. * **SFX (Sound Effects)**: * **Tile Click**: A satisfying, "clacky" wooden or hard plastic tap sound (like real Mahjong tiles hitting). * **Correct Match**: A soft, harmonious chime or a cheerful "ding" accompanied by a magical sparkle sound. * **Wrong Match**: A gentle, low-pitched "thud" or a soft buzzer—nothing too harsh or punishing. * **Level Clear**: A short, celebratory fanfare. ### 3. Gameplay Loop * **Core Mechanic**: Standard Mahjong Solitaire rules apply (tiles must be "free" on the left or right and top to be selectable). * **The Math Twist**: Instead of matching identical images, players must match **equivalent values**. * *Example*: A tile displaying "5" matches with a tile displaying "2 + 3". * *Example*: A tile displaying "Triangle" matches with another "Triangle" (for visual breaks). * **Level Progression**: Start with a simple pyramidal layout. As levels progress, increase the complexity of the 3D structures (towers, bridges) and the difficulty of the math problems (introducing multiplication or larger numbers). * **Win/Loss**: * **Win**: Clear the board completely. * **Loss**: No more valid moves available (needs a "Shuffle" button mechanic to prevent frustration). * **Visual Feedback**: When a tile is selected, highlight it with a glowing yellow border. When a match is made, play a particle effect (confetti or stars) before the tiles fade out. ### 4. Mobile Controls & Interaction * **Camera & Orientation**: * **Portrait Mode**: Optimize the camera Field of View (FOV) so the tile structure fills the center of the screen vertically. The camera should be orthographic or have a narrow perspective to avoid distortion at the edges. * **Gestures**: Allow single-finger rotation (orbit controls) to see hidden tiles behind taller stacks. Allow two-finger pinch to zoom. * **Touch Input**: * Implement Raycaster for precise touch detection. * Increase the clickable hit-box area slightly beyond the visual mesh of the tiles to accommodate "fat finger" errors. * **UI Layout**: * Place a large "Shuffle" button and "Hint" button at the bottom of the screen (thumb-reachable zone). * Display "Level" and "Score/Time" at the very top, safe from notches/camera cutouts. * All buttons must be at least 48x48px for accessibility. * **Haptic Feedback**: Trigger a light vibration (using the Vibration API) when a tile is selected, and a distinct double-pulse when a successful match is made. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Math Mahjong Relax is an innovative educational puzzle game that brilliantly combines the timeless appeal of traditional Mahjong with stimulating mathematical challenges. This unique hybrid game offers players a dual mental workout, exercising both visual pattern recognition skills and mathematical problem-solving abilities across 36 carefully designed levels.

Unlike traditional Mahjong games that focus solely on tile matching, Math Mahjong Relax introduces an educational twist that makes learning math enjoyable and engaging. Each level presents players with mathematical equations and problems that must be solved correctly to progress, creating an immersive learning experience that feels more like entertainment than education.

Core Features

Educational Gaming Experience

This game transforms math practice into an enjoyable activity. Instead of boring worksheets or repetitive drills, players engage with mathematical concepts through interactive tile-matching gameplay that keeps them motivated and focused.

Progressive Difficulty System

With 36 unique levels, the game offers a well-structured learning curve that gradually introduces more complex mathematical concepts. Early levels focus on basic arithmetic, while advanced stages challenge players with more sophisticated equations and problem-solving scenarios.

Visual and Mental Stimulation

The game provides a perfect balance of visual pattern recognition and mathematical reasoning. Players must identify matching tiles while simultaneously solving math problems, creating a comprehensive brain training experience that engages multiple cognitive functions.

Relaxing Game Environment

True to its name, Math Mahjong Relax offers a calm, stress-free gaming environment. The soothing visual design and peaceful gameplay pace make it ideal for players who want to improve their math skills without feeling pressured or rushed.

Game Mechanics

Tile Matching System

Players must identify and match tiles according to traditional Mahjong rules, but with an educational twist. Each successful match reveals mathematical equations or problems that must be solved to continue progressing through the level.

Mathematical Challenges

The game incorporates various mathematical concepts including basic arithmetic (addition, subtraction, multiplication, division), number recognition, and logical reasoning. Problems are integrated seamlessly into the tile-matching mechanics, creating a natural learning flow.

Level Progression

Each of the 36 levels presents unique challenges that combine different mathematical concepts with varying Mahjong board layouts. This variety ensures that players remain engaged while continuously learning new skills.

Educational Benefits

Mathematics Skill Development

Regular gameplay helps improve mathematical fluency, number sense, and problem-solving abilities. The game covers fundamental math concepts that are essential for students and beneficial for adults looking to maintain their mathematical skills.

Cognitive Enhancement

The dual nature of the game - requiring both visual processing and mathematical thinking - provides excellent brain training. This combination helps improve memory, concentration, and analytical thinking skills.

Stress-Free Learning Environment

Unlike traditional educational methods that can create anxiety around mathematics, this game provides a relaxed, enjoyable way to practice math skills without the pressure of formal testing or time constraints.

Why Play Math Mahjong Relax

Math Mahjong Relax is perfect for players seeking an educational gaming experience that doesn't sacrifice fun for learning. Whether you're a student looking to improve math skills, a parent seeking educational games for children, or an adult wanting to keep your mind sharp, this game offers the ideal combination of entertainment and education.

The game is completely free to play online, requires no downloads or installations, and works perfectly on all devices. With its carefully designed progression system and engaging gameplay mechanics, Math Mahjong Relax makes mathematics accessible and enjoyable for players of all skill levels.

Frequently Asked Questions (FAQ)