Domino - Classic Online Domino Game

Seele01-Flash
By
Experience the timeless classic domino game online! Play strategic matches with 2-4 players, match tiles, block opponents, and aim to be the first to play all your dominoes.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Classic Tabletop Domino**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-fidelity "Skeuomorphic" design mimicking a real physical board game but with a clean, modern UI. * **Camera:** A fixed high-angle perspective (or Orthographic) top-down view to maximize board visibility on small screens. * **The Table:** A deep green, high-quality felt texture (resembling the reference image background) using `MeshStandardMaterial` with a subtle fabric normal map. * **The Tiles:** Create procedural 3D Domino tiles (Double-6 set, 28 tiles total). * Dimensions: Ratio roughly 1:2:0.1 (Width:Length:Thickness). * Material: White, slightly glossy plastic/bone material (`MeshPhysicalMaterial` with `clearcoat`). * Details: Rounded corners to catch light. Black pips (dots) should be slightly indented geometry or high-contrast texture. * **Lighting:** Soft, warm studio lighting. A main directional light to cast subtle shadows (indicating tile thickness) and ambient light to ensure visibility. * **Performance:** Use simple geometries for the pips (cylinders) or textures to keep polygon count low. ### 2. Audio Requirements * **BGM:** A relaxing, sophisticated Lounge Jazz or Lo-fi Piano track to encourage thinking and logic. It should be loopable and unobtrusive. * **Sound Effects (SFX):** * **Tile Clack:** A sharp, satisfying ceramic/plastic "clack" sound when a tile is placed on the table. * **Shuffle:** The sound of many tiles sliding against felt during the start. * **Selection:** A soft "click" or "pop" when the player selects a tile from their hand. * **Win/Loss:** A short triumphant chord for winning; a gentle descending melody for losing. ### 3. Gameplay Loop * **Setup:** 4 Players (1 Human User vs. 3 AI Opponents). The game uses a standard "Double-Six" set (28 tiles). * **Distribution:** Each player receives 7 tiles. * **Turn-Based Logic:** * The player with the highest double (or Double-6) starts. * Players take turns matching a tile from their hand to one of the two open ends of the domino chain on the table. * **Blocking:** If a player has no matching tile, they must "Pass" (since the full deck is distributed in a 4-player game). * **AI Behavior:** AI should play valid moves automatically with a slight delay (0.5s - 1s) to simulate thinking. * **Win Condition:** * **Standard:** The first player to play all their tiles wins. * **Blocked Game:** If no one can move, the player with the lowest total sum of pips in their hand wins. ### 4. Mobile Controls & Interaction * **Orientation:** Force **Landscape Mode** to allow enough width for the domino snake to expand. * **Player Hand UI:** * The player's tiles should be arranged in a horizontal row at the bottom of the screen (fixed HUD). * Tiles in hand must be large enough to tap easily (minimum touch target). * **Interaction Model:** * **Highlighting:** When the player's turn starts, highlight playable tiles in their hand (e.g., slight glow or lift animation). Non-playable tiles should be dimmed. * **Placement:** "Tap to Select" -> The game automatically places the tile at the valid end. If both ends are valid for that tile, show two "Ghost Tiles" on the board and let the player tap one to confirm placement. * **Camera Handling:** Implement "Pinch to Zoom" and "One-finger Pan" so the user can navigate if the domino chain grows off-screen. * **Feedback:** * **Haptic:** Trigger a light vibration (Taptic Engine) when a tile is successfully placed. * **Visual:** When a tile is placed, use a smooth `Tween` animation to slide it from the hand to the board position. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Domino

Domino brings the beloved classic board game to your screen with smooth, strategic gameplay that captures all the excitement of traditional domino matches. This digital adaptation allows you to enjoy one of the world's most popular tile-matching games anytime, anywhere, with the convenience of online play.

Whether you're a seasoned domino player or new to the game, this online version offers the perfect blend of strategy, skill, and luck that has made dominoes a favorite family game for generations.

Core Features

Flexible Multiplayer Options

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

Strategic Tile-Matching Gameplay

Master the art of domino strategy as you: - Match numbered tiles end-to-end to build the domino chain - Block opponents by strategically placing tiles to limit their options - Plan ahead to maximize your scoring opportunities - Manage your hand efficiently to be the first player to play all tiles

Smooth Digital Experience

Enjoy seamless gameplay with: - Intuitive controls - simply click or tap to place your tiles - Clear visual interface that makes tile matching easy and enjoyable - Responsive design that works perfectly on all devices - Instant play - no complicated setup or lengthy tutorials required

Cross-Platform Compatibility

Play on any device including desktop computers, smartphones, and tablets. The game automatically adjusts to your screen size for optimal gameplay experience.

How to Play

Basic Rules

  1. Starting the Game : Each player receives a set number of domino tiles (usually 7 in a 4-player game)
  2. First Move : The player with the highest double tile (like 6-6) starts the game
  3. Matching Tiles : Players take turns adding tiles to either end of the domino chain, matching the number of dots
  4. Drawing Tiles : If you can't make a move, draw from the boneyard (remaining tiles)
  5. Winning : The first player to play all their tiles wins the round

Strategy Tips

  • Keep track of which numbers have been played
  • Try to get rid of your highest-value tiles early
  • Block opponents when possible by playing tiles they likely can't match
  • Save doubles for strategic moments when you need to change the game flow

Game Controls

Click or Tap : Select and place domino tiles on the board. The game will highlight valid placement positions to guide your moves.

Visual Indicators : The interface clearly shows whose turn it is and which tiles can be legally played, making the game accessible to players of all experience levels.

Why Play This Domino Game

Perfect for All Skill Levels

Whether you're learning the basics or you're a domino master, this game provides an engaging experience. The simple rules make it easy for beginners, while the strategic depth keeps experienced players coming back.

Social and Competitive Fun

Dominoes is fundamentally a social game, and this online version captures that spirit. Challenge friends or family members, develop your strategy skills, and enjoy the timeless appeal of this classic game.

Convenient Online Play

No need to set up physical tiles or find a playing surface. Jump into a game instantly whenever you have a few minutes to spare, making it perfect for quick gaming sessions or longer strategic battles.

Mental Exercise

Dominoes combines mathematical thinking, pattern recognition, and strategic planning, providing excellent mental stimulation while remaining fun and accessible.

Frequently Asked Questions (FAQ)