Yahtzee Online - Classic Dice Game

Seele01-Flash
By
Yahtzee Online brings the beloved classic dice game to your browser. Play solo or with up to 3 friends, combining strategy and luck to achieve the highest score through dice combinations.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Yahtzee Online - 3D Mobile Edition**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Skeuomorphic "Classic Board Game" aesthetic. Use a dark, rich wood texture for the background table and a deep green felt texture for the dice rolling area (Dice Tray). The UI should have glossy, metallic borders (gold or silver) similar to the reference screenshot. * **3D Models:** * **Dice:** Generate 5 low-poly cubes with rounded edges (bevel segments). Use textures for standard 1-6 pips. * **Table:** A simple plane with a high-res wood texture. * **Lighting:** Warm, soft spotlight focused on the "Dice Tray" area to create shadows and depth for the dice. * **Performance:** Optimize for mobile browsers. Reuse dice geometries (InstanceMesh if possible, though 5 is low enough for standard Mesh). Limit real-time shadow map resolution. ### 2. Audio Requirements * **BGM:** A looping, relaxing "Lounge Jazz" or "Smooth Piano" track to simulate a classy casino or home game night atmosphere. * **SFX:** * **Rolling:** A realistic "clatter" sound of plastic dice hitting wood/felt. * **Selection:** A soft "tock" or "click" sound when tapping a die to hold it. * **Scoring:** A "cash register" ding or a "pencil writing" sound when a score is confirmed. * **Yahtzee:** A celebratory fanfare effect if 5 matching dice are rolled. ### 3. Gameplay Loop * **Game State:** Implement a turn-based system supporting 1 Player (vs CPU) or Local Multiplayer (Pass & Play). * **Turn Logic:** 1. Player has 3 rolls per turn. 2. **Roll 1:** All non-held dice are randomized with an animation. 3. **Hold Phase:** Player selects which dice to "Keep" (these do not roll in the next step). 4. **Roll 2 & 3:** Optional re-rolls of non-held dice. 5. **Scoring Phase:** Player *must* select a category on the scorecard to end the turn. * **Scoring Rules (Standard Yahtzee):** * **Upper Section:** Aces through Sixes (Sum of specific dice). Bonus: +35 points if Upper sum >= 63. * **Lower Section:** 3 of a Kind, 4 of a Kind, Full House (25pts), Small Straight (30pts), Large Straight (40pts), Yahtzee (50pts), Chance (Sum of all). * **Win Condition:** Game ends when all 13 categories are filled. Highest total score wins. ### 4. Mobile Controls & Interaction * **Screen Orientation:** Portrait Mode (Vertical) preferred for one-handed mobile play. * **Top 60%:** The Scorecard (Scrollable or Tabbed view to ensure text is readable). * **Bottom 40%:** The 3D Dice Tray and "Roll" button. * **Touch Controls:** * **Dice Interaction:** Use Three.js `Raycaster` to detect taps on 3D dice. Tapping a die moves it slightly aside or highlights it with a glow/outline to indicate "Held" status. * **UI Buttons:** Large, thumb-friendly "ROLL" button (minimum 44x44px touch area). * **Visual Feedback:** * When a category is valid for scoring based on current dice, highlight that row in the scorecard green. * Use simple `Tween.js` animations for the dice roll (rotation and translation) rather than heavy physics simulations, to ensure smooth performance on low-end phones. * **Haptic Feedback:** Trigger a short vibration (`navigator.vibrate(50)`) when dice hit the "table" at the end of a roll animation. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Yahtzee Online is a faithful digital adaptation of the world-famous dice game that has entertained families for generations. This free browser-based version captures all the excitement, strategy, and chance of the original Yahtzee, allowing you to play solo or compete with up to 3 opponents on the same device.

The game features stunning graphics with smooth dice animations, an intuitive scoreboard, and elegant background music that enhances the gaming experience. Whether you're a Yahtzee veteran or new to dice games, this online version provides endless entertainment without any downloads or installations required.

Core Features

Free Multiplayer Gaming

Enjoy competitive gameplay with up to 4 players total on the same computer. Perfect for family game nights, friendly competitions, or when you want to challenge friends and relatives to classic dice action.

Complete Yahtzee Experience

This online version includes all traditional Yahtzee elements: - Five dice rolling mechanics with realistic physics - 13 scoring categories including number combinations and special hands - Bonus scoring system with 35-point upper section bonus - Strategic decision-making for optimal score placement

Superior Visual Design

The game boasts polished graphics featuring: - Smooth, realistic dice animations - Clear, easy-to-read scorecard interface - Elegant wooden table design - Intuitive player indicators and turn management

Cross-Platform Compatibility

Play seamlessly across all devices - desktop computers, laptops, tablets, and mobile phones. The responsive design ensures optimal gameplay regardless of screen size.

Game Mechanics

Basic Gameplay Loop

Each turn follows a simple yet engaging pattern: 1. Roll all five dice to start your turn 2. Select dice to keep and re-roll the others (up to 3 rolls total) 3. Choose a scoring category to place your final combination 4. Strategic planning becomes crucial as categories can only be used once

Scoring Categories Explained

Upper Section (Number Scoring): - Count matching numbers and multiply by their face value - Score 65+ points to earn a 35-point bonus - Examples: Four 4's = 16 points, Three 6's = 18 points

Lower Section (Special Combinations): - Three/Four of a Kind : Sum all dice when you have 3+ matching - Full House : Three of one number + two of another = 25 points - Small Straight : Four consecutive numbers = 30 points - Large Straight : Five consecutive numbers = 40 points - Yahtzee : Five matching dice = 50 points - Chance : Sum of all five dice (backup option)

Operation Guide

Getting Started

  1. Choose game mode : Single-player practice or multiplayer competition
  2. Set player count : Add up to 3 additional players for local multiplayer
  3. Begin rolling : Click to roll all five dice

During Your Turn

  • Mouse click : Primary control for all game interactions
  • Dice selection : Click individual dice to hold them for re-rolls
  • Category selection : Click on scorecard categories to place your score
  • Re-roll management : Use your three rolls strategically

Advanced Strategy Tips

  • Early game : Focus on upper section numbers for bonus qualification
  • Mid game : Secure easier lower section combinations first
  • Late game : Take calculated risks for high-scoring combinations
  • Yahtzee priority : Always go for Yahtzee when you have 3+ matching dice

Why Play This Game

Perfect for All Skill Levels

Yahtzee Online welcomes both beginners and experienced players. The rules are simple enough to learn in minutes, yet the strategic depth keeps you engaged for hours. The perfect balance of luck and skill ensures every game feels fresh and exciting.

Ideal Social Gaming

This multiplayer-focused version shines during gatherings. Whether it's family time, friend meetups, or casual competitions, Yahtzee Online creates memorable moments and friendly rivalry.

No Commitment Required

As a free browser game, there's zero barrier to entry. No downloads, no registrations, no payments - just instant access to classic dice gaming fun. Perfect for quick gaming sessions or extended tournaments.

Authentic Experience

Every detail faithfully recreates the traditional Yahtzee experience while adding modern conveniences like automatic scoring, clear visual feedback, and smooth digital dice physics.

Whether you're looking to relive childhood memories, introduce friends to a gaming classic, or simply enjoy a strategic dice game, Yahtzee Online delivers the complete package in an accessible, polished format.

Frequently Asked Questions (FAQ)