Sudoku.com - Number Games — Brain Logic Teardown & AI Starter Prompt
Study the Word, Trivia & Brain Logic Puzzle core loop, test-play a browser reference, and copy a structured AI starter prompt to build your own original prototype.
Original Prototype Prompt: Word, Trivia & Brain Logic Puzzle
Paste into Cursor, Claude Code, Bolt, Lovable, or DeepSeek to scaffold a playable original game prototype around this genre mechanic.
Target Platform
Prompt Language
Visual Style & Palette
You are a senior casual-game engineer specializing in polished HTML5 mini-games. Build a **complete, immediately playable, zero-TODO, production-quality** original mini-game prototype in one pass.
### 1. Original Identity & Visual Direction
- Visual Style — Clean Modern Geometric: Invent a fresh original game title. Use crisp tactile rounded vector shapes, subtle soft shadows, off-white/slate canvas (#F8FAFC) with vivid colorblind-safe accents (#4F46E5, #10B981, #F59E0B, #EF4444, #0EA5E9). Render everything procedurally with original assets.
- Build every visual shape, title, palette, and audio effect 100% procedurally from scratch with zero external image/audio URLs so the project is lightweight, original, and ready for deployment.
### 2. Core Gameplay Mechanics & Architecture (Curated Spec)
- **Core Loop & State Machine:** `MENU` -> `GENERATING` -> `PLAYING` (sub-states: `INPUT_VALUE`, `NOTE_MODE`, `PAUSED`) -> `VICTORY` | `GAME_OVER`. Players fill an 81-cell (9x9) board divided into nine 3x3 sub-boxes with digits `1-9`. **Win:** all 81 cells populated with zero row, column, or 3x3 box collisions. **Loss:** optional strict-mode mistake counter hits `3/3` (or toggle off for relaxed infinite-try play).
- **Data Structures & Solvability:**
- Store `solutionGrid: Uint8Array(81)`, `puzzleGrid: Uint8Array(81)`, `playerGrid: Uint8Array(81)`, `lockedMask: Uint8Array(81)`, and `notesMask: Uint16Array(81)` (9-bit bitmask per cell for fast candidate toggling).
- Precompute or generate boards via randomized diagonal 3x3 box seeding + backtracking solver, then dig clues symmetrically while running a **uniqueness-verifying solver** (early-exit as soon as `solutionCount > 1`) so every board guarantees a single valid solution.
- Maintain an `undoStack` of compact move deltas `{idx, prevVal, prevNotes, nextVal, nextNotes}` for instant zero-allocation rollback.
- **Controls, Game Feel & Boosters:**
- Tap/click cell or navigate with arrow/WASD keys; number keys `1-9` or on-screen numpad place digits, `Space` toggles Pencil-Note mode, `Backspace` clears.
- **Juice:** Highlight active row, column, 3x3 box, and matching digits across the board; trigger subtle 120ms red shake + soft buzz on duplicate conflict; fire a cascading cell-wave shimmer and ascending chime when any row/col/box completes.
- **Boosters:** (1) **Logic Hint** (finds and reveals a naked/hidden single cell with reasoning highlight), (2) **Auto-Pencil** (populates valid remaining candidate bitmasks across empty cells), (3) **Conflict Guard** (toggles real-time error checking against `solutionGrid`).
- **10-Level Difficulty & Pacing Curve:**
- Levels 1-2: `46-50` givens, solvable purely via single-candidate scans.
- Levels 3-5: `38-44` givens, introducing hidden singles across 3x3 boxes.
- Levels 6-8: `30-36` givens, requiring naked pairs and pointing-pair box reductions.
- Levels 9-10: `24-28` givens, enforcing X-Wing / multi-step chain deductions with stricter mistake limits.
### 3. Target Platform & Engineering Spec (Web H5)
- Deliverable: Self-contained browser HTML5 game (single index.html with inline CSS/JS or clean React + Canvas 2D component) that runs immediately with zero external asset URLs.
- Viewport: Responsive full-viewport canvas supporting both desktop mouse/keyboard and mobile touch (9:16 portrait or adaptive center stage).
- Publishing & Monetization Stubs: Wrap a lightweight `window.GAME_SDK` adapter with `gameplayStart()`, `gameplayStop()`, `happytime()`, and `requestRewardedAd(reason, onReward)` (hooked to Revive, Extra Slot/Hint, and 2x Reward buttons so CrazyGames/Poki/Playgama SDKs can be dropped in 5 minutes).
- Persistence: Save unlocked level, best score, coins, and sound mute state in `localStorage`.
### 4. UI Flow, Procedural Audio & Delivery Contract
- Complete State Machine: Clean Title Screen (1-line visual rule hint) -> Active Gameplay (top HUD: Level / Score / Best + bottom Booster bar) -> Victory Modal (stars/bonus + Next Level) -> Game Over Modal (Rewarded-Ad Revive/Helper hook + instant 1-tap Retry).
- Built-in procedural **Web Audio API sound synthesizer** (tap feedback, ascending combo chime, level-clear fanfare, fail thud) with a top-right Mute toggle.
- Delivery Rule: Output complete, runnable code with zero placeholders, clean state separation, and tested win/loss edge cases ready to play right away.Originality notice: Prompts focus strictly on abstract genre mechanics, data structures, and procedural code. Always ship with your own original title, art, audio, and branding.

Christmas Onet Connect
Test-play this instant browser game with a similar mechanic right now to feel the core loop — no install needed.
Game Overview
Sudoku.com sits at #63 on the US App Store (Breakout Score 3/100), exemplifying a mature, evergreen brain-training staple launched in 2017 rather than a viral spike. Backed by major UA powerhouse Easybrain Ltd, it sustains top-100 scale through massive cross-promotion, ad-monetized retention loops, and frictionless onboarding across casual and veteran puzzle audiences.
Core Hook & Retention: The store pitch centers on translating the tactile comfort of pencil-and-paper logic into a stress-free mobile session. Its stickiness comes from unique-solution guarantees paired with configurable scaffolding—players choose between pure unassisted deduction or assistive toggles like auto-check, duplicate highlighting, and smart hints. Multiple difficulty tiers let commuters unwind on easy boards while offering expert workouts.
Solo-Builder Angle: Because 9x9 constraint-satisfaction puzzles require zero heavy art pipelines or real-time physics, solo HTML5 developers can ship a crisp, zero-latency web version in days. Differentiate from UA-heavy incumbents by stripping forced interstitials, adding keyboard-first speedrun ergonomics, daily seeded challenges, and clean offline-first PWA persistence.
Frequently Asked Questions
How can I vibe code an original mini-game like Sudoku.com - Number Games with AI (Cursor, Claude, or Bolt)?
Sudoku.com - Number Games follows the Word, Trivia & Brain Logic Puzzle mechanic archetype: Present a crisp bite-sized logic/word/number puzzle per level with instant visual constraint feedback (row/column conflict checks or green/amber letter validation). Players deduce the solution within limited mistakes/attempts to build win streaks and shareable emoji result cards. Pick your target platform and an original visual theme in the Vibe Coding Prompt Workbench above, then paste the structured starter prompt into Cursor, Claude Code, Bolt.new, or Lovable to scaffold a playable zero-asset prototype in one pass.
How long does it take a solo developer to prototype a Brain Logic game?
Our solo feasibility score for this mechanic is 91/100 with an estimated MVP timeline of 1-3d using React + TypeScript + Tailwind CSS (ultra-light, zero image assets). Core architecture covers: Curated JSON puzzle bank (minimum 15 levels + daily seeded challenge), input validation engine, mistake counter (3 hearts), hint revealer, and streak/stats persistence.
Can I publish an AI-prototyped Brain Logic game to Poki, CrazyGames, Playgama, or WeChat Mini-Games?
Yes. Selecting the Web H5, WeChat / Douyin Mini-Game, or Mobile PWA target preset automatically wires a clean SDK adapter (gameplayStart, gameplayStop, rewarded-ad hooks) and procedural zero-asset rendering. Always ship under your own original title, art, audio, and level layouts.