Dominoes Classic

Seele01-Flash
By
Dominoes Classic brings the beloved board game experience online with three exciting game modes and adjustable difficulty levels. Play against AI opponents in this free browser-based version that captures all the strategy and fun of traditional dominoes.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Dominoes Classic - 3D Mobile Edition**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A "Polished Casual" 3D aesthetic. Use a skeuomorphic approach to make the game feel tactile on mobile screens. * **Models**: * **Domino Tiles**: Procedurally generated geometries (BoxGeometry with rounded edges/bevels). Use `InstancedMesh` for performance optimization to render the standard 28-tile double-six set. * **Texture**: * *Front*: Cream or bone-white material with glossy finish. Pips (dots) should be indented (normal map) and black. * *Back*: A subtle texture (wood grain or logo pattern) to distinguish face-down tiles. * **Table/Background**: A high-quality wood grain surface or a classic green felt texture. Allow the user to toggle between these via a UI setting (as per description). * **Lighting & Camera**: * Use a **Fixed High-Angle Perspective Camera** (fov: 45) to ensure the entire board is visible on vertical mobile screens. * Soft Ambient Light + Directional Light casting soft shadows to give the tiles "weight" and depth. * **Visual Effects**: * When a tile is playable, it should have a subtle glow or outline. * "Ghost" tiles showing valid placement positions when a user drags a tile. ### 2. Audio Requirements * **BGM**: A relaxing, acoustic "Coffee Shop Jazz" or "Lounge Piano" track to match the solitary/casual nature of the game description. It should loop seamlessly. * **Sound Effects (SFX)**: * **Tile Placement**: A distinct, satisfying "Clack" sound (like hard plastic hitting wood). * **Shuffle**: A "rattling" sound when the boneyard is mixed at the start. * **UI sounds**: Soft clicks for menu buttons. * **Victory**: A short, uplifting chime when the player clears their hand. ### 3. Gameplay Loop * **Game Modes**: Implement logic for the three classic modes mentioned: 1. **Draw**: If the player has no matching move, they must draw from the boneyard until they can play. 2. **Block**: No drawing allowed. If stuck, the turn passes. Game ends when no one can move. 3. **All-Fives**: A scoring system where points are awarded if the open ends of the chain add up to a multiple of 5. * **Core Flow**: 1. **Shuffle & Deal**: Animate tiles shuffling face down. Deal 7 tiles to Player (bottom of screen) and 7 to AI (top of screen, hidden). 2. **Turn Logic**: Player drags a matching tile to an open end of the chain. 3. **AI Behavior**: A simple state machine for the AI opponent (Random valid move for "Easy", Strategic blocking/scoring for "Hard"). 4. **Win Condition**: The round ends when one player empties their hand or the game is "blocked" (lowest pip count in hand wins). ### 4. Mobile Controls & Interaction * **Input System**: Use `THREE.Raycaster` for touch interactions. * **Hand Management**: The player's hand should be displayed at the bottom of the screen. Tiles should be large enough for thumbs (min-width 15% of screen width per tile). * **Drag & Drop with Snapping**: * User taps and drags a tile from their hand. * If the tile is released near a valid connection point (Hitbox radius > 50px), it **automatically snaps** and animates into perfect alignment. * If released elsewhere, it smoothly returns to the hand. * **Screen Orientation**: * Support **Portrait Mode** primarily (stacking the domino chain in a snake-like pattern to fit the vertical aspect ratio). * **UI Overlay**: * A clean HTML/CSS overlay for the "Menu" (3 dots icon), Scoreboard, and Difficulty Selector. * Buttons must have a minimum touch target of 44x44 pixels. * **Haptic Feedback**: Trigger `window.navigator.vibrate(15)` on successful tile 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

Dominoes Classic is the digital adaptation of one of the world's most popular board games, offering an authentic domino-playing experience right in your browser. With a stellar 4.1/5 rating from players, this game successfully recreates the strategic depth and casual enjoyment that has made dominoes a family favorite for generations.

This HTML5-powered game brings traditional domino gameplay to modern devices, allowing you to enjoy quick matches or extended gaming sessions whenever the mood strikes. Whether you're a seasoned domino veteran or new to the game, Dominoes Classic provides the perfect platform to develop your skills and enjoy this timeless classic.

Core Features

Three Distinct Game Modes

Dominoes Classic offers variety through its three carefully crafted game modes:

  • Original Mode : The traditional domino experience with classic rules and scoring
  • Block Mode : Strategic gameplay where blocking opponents becomes crucial
  • All-Fives Mode : Advanced scoring system that rewards multiples of five

Intelligent AI Opponents

The game features sophisticated artificial intelligence that adapts to your chosen difficulty level. From beginner-friendly opponents that help you learn the ropes to challenging masters that will test your strategic thinking, there's always an appropriate challenge waiting.

Cross-Platform Compatibility

Built with HTML5 technology, Dominoes Classic runs seamlessly across all modern devices and browsers. Whether you prefer playing on your desktop computer, tablet, or smartphone, the game delivers a consistent and enjoyable experience with responsive touch controls and intuitive interface design.

Customization Options

Personalize your gaming experience with multiple background themes and visual settings. The game remembers your preferences and automatically saves your progress, so you can always pick up where you left off.

Game Rules and Strategy

Basic Gameplay

In Dominoes Classic, players take turns placing domino tiles on the board, matching the number of dots (pips) on adjacent tiles. The objective varies by game mode, but generally involves being the first to play all your tiles or achieving the highest score.

Strategic Elements

Success in dominoes requires more than luck - it demands strategic thinking:

  • Tile Management : Carefully consider which tiles to play and when
  • Opponent Analysis : Observe patterns in your opponent's plays
  • Blocking Strategy : Prevent opponents from making favorable moves
  • Score Optimization : Maximize your points while minimizing your opponent's opportunities

How to Play

Getting Started

  1. Select Your Mode : Choose from Original, Block, or All-Fives gameplay
  2. Set Difficulty : Adjust the AI challenge level to match your skills
  3. Begin Playing : Drag domino tiles from your hand to the game board
  4. Match Numbers : Connect tiles with matching pip counts
  5. Strategic Placement : Consider both immediate moves and future possibilities

Controls and Interface

  • Mouse/Touch : Drag and drop domino tiles onto the playing board
  • Menu Access : Click the three-dot menu for options and settings
  • Hint System : Use built-in hints when you need strategic guidance
  • Score Tracking : Monitor your performance in real-time

The intuitive interface makes it easy to focus on strategy rather than struggling with controls. Visual indicators help you identify valid moves, while the clean design ensures tiles and numbers remain clearly visible throughout gameplay.

Why Play Dominoes Classic

Perfect for Any Moment

Unlike physical domino sets that require setup and multiple players, Dominoes Classic is always ready for instant gameplay. Whether you have five minutes or an hour, you can enjoy a satisfying domino experience that fits your schedule.

Skill Development

The game serves as an excellent training ground for improving your domino skills. The adjustable difficulty system allows you to gradually increase the challenge as your strategic thinking develops, making you a better player for both digital and physical domino games.

Stress-Free Entertainment

With no time pressure and the ability to pause and resume games, Dominoes Classic provides relaxing entertainment that you can enjoy at your own pace. The familiar gameplay mechanics offer comfort and nostalgia while still providing engaging challenges.

Accessibility and Convenience

The game's universal compatibility means you can enjoy dominoes anywhere with an internet connection. No need to carry a physical set or coordinate schedules with other players - your domino opponents are always ready when you are.

Frequently Asked Questions (FAQ)