Domino - Classic Online Board Game

Seele01-Flash
By
Domino brings the beloved classic board game to your browser! Play strategic matches with 2-4 players, match tiles, block opponents, and aim to be the first player to go out in this timeless game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Classic Online Domino**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Clean, minimalist 3D aesthetic mimicking a classic tabletop experience. The look should be crisp and high-contrast for visibility on small screens. * **The Table:** A rich, textured green felt surface (like a casino or pool table) serving as the background. Include subtle ambient occlusion or a vignette effect at the edges to focus attention on the center. * **Domino Tiles:** * Create procedural rectangular geometries with rounded corners (bevels) to catch the light. * Base color: Ivory/White with a subtle specular shine (plastic/bone material). * Pips (Dots): inset geometries or high-quality textures in black. * Backside: A distinct, simple pattern or a solid contrasting color (e.g., dark wood or black) to distinguish opponent tiles. * **Lighting:** Soft, overhead studio lighting (Three.js DirectionalLight + AmbientLight) casting realistic, soft shadows to give depth to the tiles stacking on the table. * **Camera:** A top-down perspective (Ortho or Perspective with narrow FOV) that dynamically zooms or pans to keep the active play area centered within the mobile viewport. ### 2. Audio Requirements * **BGM:** A relaxing, lo-fi jazz or acoustic guitar lounge track. It should be unobtrusive and loop seamlessly to encourage focus. * **Sound Effects (SFX):** * *Tile Clack:* A satisfying, hard plastic "clack" sound when a tile is placed on the table. Different pitch variations for placing vs. shuffling. * *Shuffle:* A distinct rattling sound for the initial tile mixing. * *Turn Notification:* A soft "ding" or chime when it's the player's turn. * *Invalid Move:* A subtle "thud" or dull wooden sound if the player tries to place a tile incorrectly. * *Victory:* A short, uplifting fanfare. ### 3. Gameplay Loop * **Core Mechanics:** Implement standard "Draw" or "Block" domino rules. The game starts with 2-4 players (1 human vs 1-3 AI bots). * **The Shuffle:** At the start, all tiles are face down and shuffled physically. Each player draws 7 tiles. The rest form the "boneyard." * **Turn Logic:** * The player with the highest double (or random start) goes first. * Players must match the open end of the domino chain with a tile from their hand matching the number of pips. * If a player cannot move, they must draw from the boneyard until they can play (Draw mode) or pass (Block mode). * **Win Condition:** The round ends when one player empties their hand ("Domino!") or the game is blocked (no one can move). The winner scores the sum of pips remaining in opponents' hands. * **AI Behavior:** Simple AI that prioritizes playing doubles or getting rid of high-value tiles first. ### 4. Mobile Controls & Interaction * **Orientation:** Support both Portrait (casual, one-handed) and Landscape modes, dynamically adjusting the camera FOV. * **Touch Controls:** * *Hand Management:* The player's tiles are displayed in a rack at the bottom of the screen. Tap to select a tile (it should pop up slightly). * *Placement:* Ghost indicators should appear on valid placement spots on the board. Tapping the ghost snaps the tile into place. * *Drag & Drop:* Alternatively, allow dragging a tile from the rack to the board area. * **Camera Control:** Allow simple pinch-to-zoom and two-finger pan to navigate the table as the domino chain grows (the chain can get long and serpentine). * **Feedback:** * Highlight valid tiles in the player's hand with a subtle glow when it's their turn. * Haptic Feedback: Trigger a light vibration upon successful tile placement. * **UI Elements:** Large, thumb-friendly buttons for "Draw" or "Pass." A clear scoreboard in the corner showing the current tile count for each player. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Domino is the digital version of the world's most popular tile-based board game. This classic strategy game challenges players to match numbered tiles while blocking opponents and racing to empty their hand first. Perfect for both casual players and serious strategists, this online version captures all the excitement of traditional domino gameplay.

Core Features

Multiple Player Options

Choose your preferred game mode with 2, 3, or 4 players . Whether you want a quick head-to-head match or a more complex multiplayer battle, the game adapts to your preferred playing style.

Strategic Gameplay

Every move matters in Domino. Plan your tile placements carefully, anticipate opponent moves, and use blocking strategies to gain the upper hand. The game rewards both tactical thinking and adaptability.

Smooth Online Experience

  • Completely free to play - no downloads or purchases required
  • Cross-platform compatibility - play on desktop computers, tablets, and smartphones
  • Intuitive interface - easy-to-use controls suitable for all ages
  • Fast matchmaking - quickly find opponents and start playing

Classic Rules, Modern Convenience

Experience authentic domino gameplay with traditional scoring and rules, enhanced with modern digital conveniences like automatic tile counting and clear visual indicators.

Gameplay Mechanics

In Domino, players take turns placing tiles end-to-end, matching the number of dots (pips) on touching ends. The objective is simple: be the first player to play all your tiles, or have the lowest pip count when no more plays are possible.

Winning Strategies

  • Control the board by playing tiles that limit opponent options
  • Count cards to track which tiles have been played
  • Block strategically when you can't make beneficial plays
  • Manage your hand to maintain flexibility for future turns

Operation Guide

Basic Controls: - Click or tap to select and place domino tiles - Drag tiles to position them on the board - Auto-matching system helps identify valid placements - Pass button when no valid moves are available

Game Flow: 1. Each player starts with a set number of tiles (typically 7) 2. Take turns placing tiles to match existing numbers on the board 3. Draw from the boneyard when you cannot make a play 4. First player to empty their hand wins the round 5. Points are scored based on remaining tiles in opponents' hands

Why Play This Domino Game

Perfect for All Skill Levels

Whether you're new to dominoes or a seasoned player, this game offers the perfect balance of accessibility and depth. Beginners can learn quickly with visual hints, while experienced players can enjoy competitive matches.

Social Gaming Experience

Connect with players worldwide in this multiplayer experience. The game fosters social interaction while maintaining the strategic depth that makes dominoes endlessly engaging.

Brain Training Benefits

Domino gameplay enhances: - Mathematical skills through pip counting and scoring - Strategic thinking via move planning and opponent analysis
- Pattern recognition when identifying optimal tile placements - Memory skills by tracking played tiles

Anytime, Anywhere Gaming

With full mobile and desktop support, you can enjoy quick games during breaks or longer sessions at home. No physical tiles needed - just your device and an internet connection.

Frequently Asked Questions (FAQ)