Just Divide - Mathematical Puzzle Game

Seele01-Flash
By
Just Divide is an innovative mathematical puzzle game that challenges players to strategically place numbered tiles on a grid and divide them down to zero. With its unique blend of math skills and strategic thinking, it's perfect for puzzle enthusiasts who love a mental challenge.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Just Divide". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Minimalist "Math Zen" aesthetic. Use a deep, calming royal blue background (`#003366`) to contrast with vibrant orange (`#FF9900`) game tiles. * **Camera & Perspective:** Use an **Orthographic Camera** angled slightly (isometric view) to give the 2D grid a feeling of depth without perspective distortion. * **3D Models:** * **Tiles:** Use `RoundedBoxGeometry` for the number tiles to make them look soft and tactile. They should look like physical plastic chips. * **Grid:** A 5x5 slot board recessed slightly into the background. * **Text:** Dynamic 3D text or high-resolution TextureCanvas on top of each tile displaying its number. * **VFX:** * When a division happens: A subtle "shrink" animation on the affected tile. * When a tile is cleared (reaches 1): A small particle explosion (orange cubes dispersing). * **Performance:** Reuse geometries and materials. Use simple Lambert or Phong materials for performance on mobile devices. ### 2. Audio Requirements * **BGM:** A looped, ambient electronic track—think "Focus/Study" lo-fi beats. Very subtle, not distracting. * **SFX:** * **Pickup:** A soft "whoosh" or suction sound. * **Place/Drop:** A solid "clack" (like a domino hitting a table). * **Successful Division:** A pleasant, high-pitched digital chime. * **Tile Clear:** A "pop" sound. * **Game Over:** A lower-pitched descending tone. ### 3. Gameplay Loop * **Setup:** A 5x5 grid. Some squares start pre-filled with random numbers (2, 4, 8, 10, 12, 20, etc.). * **The Queue:** At the bottom of the screen, a single "Next Number" is generated (usually a small prime or common divisor like 2, 3, 4, 5). * **Core Mechanic:** 1. Player drags the "Next Number" onto an empty spot on the grid. 2. **Trigger:** Upon placement, the game checks the 4 adjacent neighbors (Up, Down, Left, Right). 3. **Calculation:** If a Neighbor is **divisible** by the Placed Number (e.g., Neighbor is 12, Placed is 4), the Neighbor becomes `Neighbor / Placed` (12 becomes 3). 4. **Clearing:** If a Neighbor is divided down to **1**, that tile is destroyed/removed from the grid, freeing up space. 5. **Scoring:** Points are awarded for every successful division, with bonus points for clearing a tile. * **Win/Loss:** * The game is endless. * **Game Over:** When the grid is full and the player cannot place the current number anywhere useful (or simply no empty slots remain). ### 4. Mobile Controls & Interaction * **Input:** Use a `Raycaster` mapped to `touch` events (and mouse for debug). * **Drag & Drop:** * Player touches the "Next Number" at the bottom. * The tile lifts slightly (z-axis up) and follows the finger. * While dragging over the grid, highlight the target slot with a semi-transparent "ghost" tile. * Release to snap to the nearest grid slot. * **Orientation:** Locked to **Portrait Mode** (Vertical). * **UI Layout:** * **Top:** Score counter (large, white font). * **Center:** The 3D Grid. * **Bottom:** The spawn area for the drag-able tile. Ensure this area is at least 15% of the screen height to accommodate thumb placement without obscuring the tile. * **Haptics:** Trigger `navigator.vibrate(10)` on a successful drop, and a slightly longer vibration `navigator.vibrate([10, 30, 10])` when a tile is destroyed. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Just Divide is a captivating mathematical puzzle game that transforms division into an engaging strategic challenge. With an impressive 4.1/5 rating, this innovative puzzle game combines educational value with addictive gameplay, making math both fun and rewarding.

In Just Divide, players face the unique challenge of placing orange tiles containing random numbers onto a grid system. The ultimate goal is to strategically divide these numbers down to zero through careful placement and mathematical reasoning. This isn't just a game of chance – success requires genuine mathematical thinking and strategic planning.

Core Features

Educational Entertainment

Just Divide brilliantly merges learning with entertainment, making it an ideal choice for students, teachers, and anyone looking to sharpen their mathematical skills while having fun.

Strategic Grid-Based Gameplay

The game features a sophisticated grid system where every placement matters. Players must think several moves ahead, considering how different number combinations will interact and divide.

Progressive Difficulty

As you advance through the game, the mathematical challenges become more complex, ensuring that players are constantly engaged and learning new strategies.

Cross-Platform Compatibility

  • Web Browser : Play instantly without downloads
  • Mobile Devices : Optimized touch controls for smartphones and tablets
  • Desktop : Full mouse and keyboard support
  • HTML5 Technology : Smooth performance across all platforms

Game Mechanics

Number Placement Strategy

Success in Just Divide depends on understanding divisibility rules and number relationships. Players must identify which numbers can divide others and plan their grid placement accordingly.

Adjacent Number Rules

The key to scoring points lies in placing divisible numbers next to each other. This creates chain reactions that can clear multiple tiles simultaneously, leading to higher scores.

Zero Achievement System

The satisfying goal of reducing numbers to zero provides clear objectives and immediate feedback on mathematical accuracy.

Operation Guide

Desktop Controls

  • Mouse : Point and click to select and place tiles
  • Drag and Drop : Move numbered tiles from the bottom panel to the grid
  • Strategic Placement : Position tiles adjacent to numbers they can divide

Mobile Controls

  • Touch Interface : Tap to select numbered tiles
  • Finger Gestures : Drag tiles to desired grid positions
  • Intuitive Design : Responsive touch controls optimized for mobile screens

Gameplay Flow

  1. Observe : Analyze the numbers available at the bottom of the screen
  2. Plan : Identify potential division combinations on the grid
  3. Place : Drag numbers to strategic grid positions
  4. Divide : Watch as adjacent divisible numbers automatically reduce
  5. Score : Earn points as numbers divide down to zero

Why Play This Game

Perfect Brain Training

Just Divide offers an excellent workout for your mathematical mind, improving division skills, number recognition, and strategic thinking abilities.

Stress-Free Learning

Unlike traditional math exercises, this game provides a pressure-free environment where making mistakes is part of the learning process.

Instant Accessibility

Being completely free and requiring no downloads, Just Divide is perfect for quick mental breaks, classroom activities, or extended puzzle sessions.

Suitable for All Ages

Whether you're a student learning division or an adult wanting to keep your math skills sharp, the game adapts to different skill levels.

Educational Value

Teachers and parents will appreciate how the game reinforces mathematical concepts while keeping learners engaged and motivated.

Just Divide proves that mathematical learning doesn't have to be boring. With its innovative approach to division and strategic gameplay, it's become a favorite among puzzle enthusiasts and educators alike.

Frequently Asked Questions (FAQ)