Yatzee - Classic Dice Strategy Game

Seele01-Flash
By
Yatzee is a classic dice strategy game where players roll five dice to create winning combinations and achieve high scores. Perfect for strategy lovers and casual gamers alike.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Yatzee - 3D Mobile Dice Strategy**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Casual, vibrant, and cartoon-styled, matching the reference image's warm color palette (Golden Yellow `#FFD700`, Deep Orange `#E67E22`, and Chocolate Brown `#8B4513`). * **Core 3D Models:** * **Dice:** 5 identical cubes with rounded corners (bevel enabled). Texture mapping for standard 1-6 pips. The dice should look glossy/plastic. * **The Board:** A contained "rolling tray" or table area with raised walls to keep dice in view. Material should be a matte felt (green or burgundy) or polished wood to contrast with the white dice. * **Lighting:** Bright, warm lighting. Use `AmbientLight` (0.6 intensity) and a `DirectionalLight` (casting soft shadows) to make the dice pop against the board. * **Visual Effects:** * **Selection Highlight:** When a player taps a die to "hold" it, it should lift slightly off the board and emit a faint glow or have a selection ring. * **Victory Particles:** Confetti explosion or particle burst when a "Yatzee" (5 of a kind) is rolled. * **Mobile Optimization:** Use low-poly geometries for the environment. Limit shadow map resolution. Use a fixed camera angle (Top-Down Isometric) to ensure all dice are visible on small screens without needing camera controls. ### 2. Audio Requirements * **BGM:** A relaxed, looping "Lounge Jazz" or "Casino Lobby" track (Piano, upright bass, soft brush drums) to fit the 'Casino' and 'Strategy' tags. * **Sound Effects (SFX):** * **Rolling:** Realistic "clatter" of hard plastic hitting a wooden/felt surface (randomized pitch for variety). * **Selection:** A soft "pop" or "click" sound when toggling the 'Hold' state of a die. * **Scoring:** A "cash register" ding or a scribbling sound when a score is locked in. * **Yatzee Event:** An excited crowd cheer or fanfare trumpet. ### 3. Gameplay Loop * **Mechanics (Standard Rules):** * **Turn Structure:** The player gets 3 rolls per turn. * *Roll 1:* Roll all 5 dice. * *Roll 2 & 3:* Player selects which dice to "Hold" (keep) and re-rolls the rest. * **Scoring:** After the 3rd roll (or earlier if satisfied), the player **must** choose a category on the scorecard to fill. * **Categories:** * *Upper Section:* Aces, Twos, Threes, Fours, Fives, 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), Yatzee (50pts), Chance (Sum of all). * **Game End:** The game ends after 13 rounds (when all categories are filled). * **Physics:** Integrate a physics engine (like **Cannon.js** or **Ammo.js**) to ensure dice rolls feel random, physical, and satisfying. ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Portrait Mode** preferred. The top half of the screen renders the 3D rolling tray, and the bottom half displays the Scorecard UI. * **Touch Controls:** * **Dice Interaction:** Use Raycasting. Tapping a die toggles the "Hold" state. * **Roll Button:** Large, thumb-friendly button (bottom center) labeled "ROLL". * **UI/UX:** * **Scorecard:** Implement an HTML/CSS overlay for the scorecard rather than 3D text. It should be a scrollable or compact grid in the bottom half. * **Feedback:** * **Haptic:** Trigger `navigator.vibrate(50)` when dice hit the walls and when buttons are pressed. * **Visual:** Valid scoring categories should highlight based on the current dice face values. * **Buttons:** Ensure all interactive elements have a minimum touch target of 44x44 pixels. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Yatzee is a timeless dice-based strategy game that combines luck and skill in an engaging gaming experience. With a solid 3.8/5 rating from players worldwide, this classic board game brings the excitement of dice rolling to your browser. Whether you're a seasoned strategist or new to dice games, Yatzee offers hours of entertainment with its simple yet addictive gameplay mechanics.

This HTML5 version ensures smooth performance across all devices, making it the perfect choice for quick gaming sessions or extended strategic play.

Core Features

Classic Dice Strategy Gameplay

Yatzee follows the traditional rules of the beloved dice game format. Roll five dice up to three times per turn, strategically choosing which dice to keep and which to reroll to create the best possible combinations.

Multiple Scoring Categories

The game features various scoring categories including: - Number combinations (1s, 2s, 3s, 4s, 5s, 6s) - Special patterns like three-of-a-kind, four-of-a-kind, and full house - Straight sequences for bonus points - The coveted Yatzee - five dice showing the same number

Strategic Decision Making

Every turn presents critical choices: which dice to keep, which combinations to pursue, and when to take risks for higher scores. This strategic depth keeps players engaged and coming back for more.

Free Browser Gaming

  • Completely free to play with no hidden costs
  • No download required - play instantly in your web browser
  • HTML5 technology ensures compatibility across all modern devices
  • Cross-platform support for desktop, tablet, and mobile gaming

Gameplay Mechanics

Yatzee combines elements of strategy, probability, and luck. Each game consists of 13 rounds, with players trying to fill different scoring categories on their scorecard. The challenge lies in deciding which combinations to pursue and when to settle for lower scores versus taking risks for higher payoffs.

The game rewards both conservative play and bold risk-taking, making each session unique and engaging.

How to Play

Playing Yatzee is straightforward but mastering it takes practice:

Basic Controls

  • Use your mouse to interact with all game elements
  • Click dice to select which ones to keep
  • Click "Roll" to roll unselected dice
  • Select scoring categories by clicking on the scorecard

Game Flow

  1. Roll the dice - Start each turn by rolling all five dice
  2. Choose keepers - Select dice you want to keep for your combination
  3. Reroll remaining - Roll the unselected dice (up to 2 more times)
  4. Score your turn - Choose a scoring category and record your points
  5. Repeat - Continue for 13 rounds to complete the game

Winning Strategy Tips

  • Focus on the upper section early to secure the 35-point bonus
  • Save high-value categories like Yatzee and four-of-a-kind for promising rolls
  • Don't be afraid to take a zero in a category to preserve better options
  • Calculate probabilities to make informed reroll decisions

Why Play This Game

Yatzee stands out as one of the most accessible yet strategically deep dice games available online. Its perfect balance of luck and skill ensures that both newcomers and experienced players can enjoy competitive gameplay.

The game's quick rounds make it ideal for short breaks, while its strategic depth provides lasting appeal for dedicated players. As a browser-based game, you can enjoy Yatzee anywhere without installations or downloads.

Whether you're looking to sharpen your strategic thinking, enjoy a relaxing gaming session, or compete for high scores, Yatzee delivers an exceptional gaming experience that has entertained players for generations.

Frequently Asked Questions (FAQ)