Domino - Classic Board Game Online

Seele01-Flash
By
Experience the timeless classic Domino board game online! Strategic tile-matching gameplay for 2-4 players with smooth controls and cross-platform compatibility.

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:** A clean, minimalistic, and flat 2D vector style rendered in a 3D space (orthographic camera view). The aesthetic should resemble a high-quality digital board game app. * **Tabletop (Background):** A solid, felt-green background (Hex: #228B22 or similar) mimicking a traditional casino or parlor card table. The texture should be subtle or completely flat to reduce noise on small screens. * **Domino Tiles:** * **Geometry:** Rounded rectangular blocks with a distinct thickness to show they are 3D objects, but viewed primarily from top-down. * **Face:** Pure white with a stark black dividing line. * **Pips (Dots):** Sharp, high-contrast black circles arranged in standard domino patterns (0-0 to 6-6). * **Backside:** Uniform matte black or dark grey. * **Animations:** * **Placement:** Smooth `gsap` (or similar) easing animations when a tile moves from the player's hand to the board. It should "snap" into place with a subtle scale bounce. * **Turn Indicators:** A soft highlight glow around the active player's avatar or hand area. * **Winning:** Confetti particle effects bursting from the center of the screen upon winning a round. * **Mobile Optimization:** Use low-poly geometries for the tiles (box geometry with beveled edges). Use basic materials (`MeshLambertMaterial` or `MeshBasicMaterial`) to ensure 60fps performance on mobile browsers. Avoid expensive shadows; use baked-in ambient occlusion or simple drop shadows below tiles. ### 2. Audio Requirements * **BGM (Background Music):** A relaxing, low-fi jazz or lounge piano track. It should be unobtrusive, looping seamlessly to aid concentration. * **Sound Effects (SFX):** * **Tile Clack:** A crisp, wooden "clack" or "click" sound (like melamine hitting wood) whenever a tile is placed on the board. * **Shuffle:** A sound of shuffling tiles (rattling plastic/wood) at the start of the game. * **Invalid Move:** A soft, dull thud or a low-pitched "error" tone if the player tries to place a mismatching tile. * **Victory/Defeat:** A short, uplifting chime for winning, and a gentle descending melody for losing. ### 3. Gameplay Loop * **Setup:** The game supports 2 to 4 players (1 human vs. AI). A standard Double-Six set (28 tiles) is shuffled. Each player draws 7 tiles. * **Core Mechanic:** * Players take turns matching a tile from their hand to one of the open ends of the layout on the board. * Matching rule: The number of pips on the open end must match the number of pips on the tile being played (e.g., a 5 connects to a 5). * **Doubles:** Double tiles (e.g., 6-6) should be placed crosswise (perpendicular) to the line of play. * **Flow:** * If a player cannot make a move, they must draw from the "boneyard" (unused tiles) until they can play or the boneyard is empty. If empty, they pass their turn. * **Win Condition:** The first player to empty their hand wins the round. If the game is blocked (no one can move), the player with the lowest total pip count in their hand wins. ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Portrait Mode** is preferred for mobile to allow the player to hold the phone with one hand and see their own tiles clearly at the bottom. * **Camera Control:** The camera is fixed but supports simple pan (drag with one finger) and zoom (pinch) to navigate the growing board layout. * **Touch Interactions:** * **Drag & Drop:** The primary control method. Users drag a tile from their rack (bottom of screen) to a highlighted valid position on the board. * **Tap to Play (Accessibility):** Alternatively, tapping a tile selects it, and valid placement zones on the board light up. Tapping the zone places the tile. * **UI Layout:** * **Player Hand:** A scrollable horizontal rack at the bottom of the screen. Tiles should be large enough (min 44px height) for easy tapping. * **Opponent Info:** Avatars and tile counts displayed at the top or sides of the screen. * **Buttons:** A large "Pass" or "Draw" button prominently displayed when no moves are available. * **Feedback:** When a tile is dragged, valid connection points on the board should pulse green to guide the user. Haptic feedback (vibration) triggers on successful placement. 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 brings the beloved classic board game into the digital age, offering players the chance to enjoy this timeless strategy game online. This digital adaptation maintains all the strategic depth and engaging gameplay that has made dominoes a favorite across generations and cultures worldwide.

The game features clean, intuitive graphics with traditional white domino tiles displayed against a classic green felt background, recreating the authentic board game experience. Whether you're a seasoned domino player or new to the game, this online version provides an accessible and enjoyable way to experience this classic.

Core Features

Flexible Player Options

Choose your preferred game mode with support for 2, 3, or 4 players. This flexibility makes it perfect for intimate duels or larger group competitions, accommodating different social gaming preferences.

Strategic Tile-Matching Gameplay

The game revolves around the classic domino mechanics where players must match tiles by placing dominoes with corresponding dot patterns end-to-end. Strategic thinking is essential as you decide which tiles to play and which to hold for optimal positioning.

Cross-Platform Compatibility

Enjoy seamless gameplay across all your devices. Whether you prefer playing on your desktop computer, smartphone, or tablet, the game adapts perfectly to different screen sizes and input methods.

Completely Free Experience

Access the full game without any cost. No hidden fees, no premium content locks - just pure domino gaming fun available to everyone.

Game Mechanics

Domino follows traditional rules where players start with a hand of tiles and take turns placing them on the board. The objective is to be the first player to use all your tiles, or to have the lowest remaining tile value when no more moves are possible.

Winning Strategies: - Plan ahead by keeping track of which numbers have been played - Block opponents by playing tiles that limit their options - Save versatile tiles (like doubles) for crucial moments - Pay attention to opponents' remaining tile counts

Operation Guide

The game features intuitive point-and-click controls designed for ease of use:

  • Click or Tap : Select and place domino tiles on the board
  • Drag and Drop : Move tiles to desired positions (on supported devices)
  • Auto-Highlight : Valid placement positions are automatically highlighted
  • Turn Indicators : Clear visual cues show whose turn it is
  • Score Tracking : Automatic calculation and display of points

Getting Started

  1. Select the number of players (2-4)
  2. Wait for tiles to be distributed
  3. Click on a tile from your hand
  4. Click on a valid board position to place it
  5. Continue until someone wins or the game blocks

Why Play This Domino Game

Perfect for Strategy Lovers : Domino rewards careful planning and tactical thinking, making each game a mental challenge that improves with practice.

Social Gaming : The multiplayer options make it ideal for family game nights or friendly competitions with up to 4 participants.

Nostalgic Appeal : For those who grew up playing physical dominoes, this digital version captures the essence of the original while adding modern convenience.

Brain Training : Regular play helps develop pattern recognition, strategic planning, and mathematical thinking skills.

Accessibility : No need to set up physical tiles or find opponents - jump into a game instantly whenever the mood strikes.

Universal Appeal : The simple rules make it approachable for beginners, while the strategic depth keeps experienced players engaged for hours.

Frequently Asked Questions (FAQ)