Numbers - Number Matching Puzzle Game

Seele01-Flash
By
Numbers is an engaging puzzle game that challenges your mathematical skills and logical thinking. Match identical numbers or pairs that sum to 10 in this brain-training adventure that's perfect for puzzle enthusiasts of all ages.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Numbers" (Logic Puzzle). Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A clean, "Zen-minimalist" 2.5D aesthetic. The camera should be an Orthographic Camera looking straight down (Top-Down view) to simulate a flat puzzle board but with subtle depth. * **Color Palette:** * **Background:** Soft, warm grey (#F0F0F0). * **Tile Base:** Off-white or light beige (#EFEBE9) rounded squares. * **Numbers:** Dark, soft charcoal (#4E4E4E) sans-serif font centered on the tiles. * **Selection Highlight:** A calm, bright sky blue (#64B5F6) as seen in the screenshot. * **Matched State:** Tiles should fade out or turn into a subtle "ghost" grey before disappearing. * **Geometry:** Use `THREE.BoxGeometry` with slight depth (z-axis) and rounded corners (or a texture with rounded corners) for the tiles to give them a tactile, "keyboard key" feel. * **Performance:** Use `THREE.InstancedMesh` if possible for the grid to handle a large number of tiles (e.g., a 9x9 or larger grid) efficiently on mobile GPUs. Shadows should be baked or very soft real-time ambient occlusion. ### 2. Audio Requirements * **BGM:** Minimalist ambient piano or soft lo-fi beats. It should be repetitive but non-intrusive, fostering concentration. * **Sound Effects (SFX):** * **Tap/Select:** A crisp, light mechanical "clack" or "pop" sound. * **Successful Match:** A satisfying, harmonious chime (C-Major chord). * **Invalid Match:** A subtle, low-pitched "thud" or "shake" sound. * **Level Clear:** A rising arpeggio flourish. ### 3. Gameplay Loop * **Grid Setup:** Initialize a grid (e.g., 9 columns wide, varying rows) filled with random numbers (1-9). * **Matching Logic (Core Mechanic):** The player selects two tiles. A match is valid if: 1. **Value Rule:** The numbers are **Identical** OR they **Sum to 10**. 2. **Pathing Rule:** The two tiles must be: * Immediately adjacent horizontally or vertically. * Separated *only* by empty/cleared spaces (i.e., they can "see" each other across gaps). * **Wrap-Around Rule:** The last active number of a row connects to the first active number of the next row. * **Loop Rule:** The very first active number of the grid connects to the very last active number. * **Win/Loss:** * **Goal:** Clear the board completely. * **Feature:** If no moves are possible, include a button to "Check for Moves" or "Add More Rows" (copying remaining numbers to the bottom). ### 4. Mobile Controls & Interaction * **Screen Orientation:** Portrait Mode (Vertical) is mandatory. * **Touch Input:** * Use `THREE.Raycaster` for precision touching. * **Tap:** Select first tile (highlight turns Blue). Tap a second tile to attempt a match. * **Deselect:** Tapping the same tile twice or tapping an invalid tile cancels the selection. * **Visual Feedback:** * **Selection:** The selected tile should slightly lift up (translate Z) and change color to Blue. * **Match Success:** Use a simple particle explosion or scaling animation (scale down to 0) before removing the mesh. * **UI Layout:** * Place a "Reset" and "Hint" button at the bottom of the screen (reachable zone). * Ensure tiles are large enough to be easily tapped without fat-finger errors (utilize full width of the mobile screen). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Numbers

Numbers is a captivating puzzle game that combines mathematical logic with strategic thinking. This brain-training game presents you with a grid full of various digits, challenging you to clear the board by pairing numbers according to specific rules. Whether you're a fan of sudoku, matching games, or simply enjoy exercising your mind, Numbers offers an addictive gameplay experience that will keep you coming back for more.

The game's elegant simplicity makes it accessible to players of all skill levels, while its strategic depth ensures that even experienced puzzle solvers will find plenty of challenge.

Core Features

Simple Yet Strategic Gameplay

Numbers features intuitive tap-to-play mechanics that anyone can learn within seconds. Simply select two blocks to create pairs, but don't let the simplicity fool you – mastering the game requires careful planning and strategic thinking.

Multiple Pairing Rules

The game offers flexibility in how you can pair numbers: - Identical Numbers : Match two blocks with the same digit - Sum to 10 : Pair any two numbers that add up to 10 (like 3+7, 4+6, etc.) - Cross-Line Pairing : Connect numbers at the end of one line with the beginning of another - Edge Connections : Pair the very first and last numbers in the entire puzzle

Brain Training Benefits

Numbers serves as an excellent mental exercise, helping to improve: - Mathematical calculation skills - Pattern recognition abilities - Strategic planning and foresight - Concentration and focus - Problem-solving capabilities

Universal Accessibility

  • Completely Free : No payments, subscriptions, or hidden costs
  • No Download Required : Play instantly in any web browser
  • Cross-Platform Support : Works perfectly on computers, smartphones, and tablets
  • Offline Play : Once loaded, you can continue playing without internet connection

Game Rules and Strategy

Basic Pairing Rules

  1. Adjacent Matching : You can pair numbers that are horizontally or vertically next to each other
  2. Clear Path Pairing : Numbers can be paired even if they're not adjacent, as long as there are no other numbers between them
  3. Line-End Connections : The last number of any line can be paired with the first number of any other line
  4. Boundary Pairing : The very first and very last numbers in the entire grid can always be paired if they follow the rules

Winning Strategy Tips

  • Look for obvious pairs first (identical numbers or easy sums to 10)
  • Plan ahead to avoid blocking yourself
  • Use line-end connections strategically
  • Consider the boundary pairing option when stuck
  • Think about which moves will open up new possibilities

Operation Guide

Playing Numbers is straightforward and intuitive:

  1. Select First Block : Tap or click on any number block to highlight it
  2. Choose Pair : Tap on another block that can be legally paired with your selection
  3. Clear Blocks : Successfully paired blocks will disappear from the grid
  4. Continue Pairing : Keep matching until no more valid pairs remain
  5. Achieve Victory : Clear all blocks to complete the puzzle

The game uses simple touch controls on mobile devices and mouse controls on desktop computers, ensuring smooth gameplay across all platforms.

Why Play Numbers?

Perfect for Brain Training

Numbers isn't just entertainment – it's a workout for your mind. Regular play helps sharpen mental math skills, improves pattern recognition, and enhances logical thinking abilities. It's an ideal game for students, professionals, and anyone looking to keep their mind sharp.

Stress-Free Gaming

With no time limits, lives, or pressure mechanics, Numbers offers a relaxing puzzle experience. Play at your own pace, take breaks whenever needed, and enjoy the satisfaction of solving each puzzle.

Suitable for All Ages

The game's simple rules make it accessible to children learning basic math, while the strategic depth appeals to adult puzzle enthusiasts. It's perfect for family gaming sessions or educational settings.

Always Available

As a browser-based game, Numbers is available whenever you need a quick mental break. Whether you have five minutes or an hour to spare, you can dive into a puzzle session anytime, anywhere.

Frequently Asked Questions (FAQ)