Yahtzee Yatzy Yams - Classic Dice Game

Seele01-Flash
By
Yahtzee Yatzy Yams is the beloved classic dice game brought to your browser. Roll five dice, create scoring combinations, and challenge your luck and strategy in this timeless board game experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Classic 3D Yahtzee / Yatzy". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Realistic, cozy tabletop simulation. The scene should look like a warm, polished wooden table where a classic board game is being played. * **Key Models:** * **Dice:** Five (5) high-quality red translucent dice with rounded corners and white pips (dots). They need to look substantial and glossy. * **Scorecard:** A clean, paper-textured 2D UI plane or 3D clipboard lying on the table, showing the classic Yahtzee scoring categories (Aces, Twos, Threes... Full House, Small/Large Straight, Yahtzee, Chance). The font should resemble handwriting or a classic serif typeface to mimic a real scorepad. * **The Table:** A rich mahogany or oak wood texture for the background plane. * **Cup (Optional but nice):** A leather-textured cup model for shaking the dice (or simply animate the dice spawning from off-screen). * **Lighting:** Warm, inviting indoor lighting. Use a soft spotlight to highlight the rolling area and ambient light to fill shadows. Shadows should be soft to ground the dice on the table. * **Mobile Optimization:** Use simple geometries for the dice (chamfered cubes) and baked textures where possible. Avoid complex real-time reflections; use a static environment map for the dice glossiness to maintain high FPS on mobile devices. ### 2. Audio Requirements * **BGM:** Smooth, relaxing Jazz or Bossa Nova. Think "coffee shop ambiance" – light piano, soft drums, upright bass. It should be non-intrusive loopable background music. * **Sound Effects (SFX):** * **Rolling:** A realistic clattering sound of plastic dice hitting a wooden surface. Vary the pitch slightly each time to avoid repetition. * **Shaking:** The sound of dice rattling inside a cup before the roll. * **Selection:** A satisfying "click" or "thud" when a user taps a die to hold/keep it. * **Scoring:** The sound of a pencil scribbling on paper when a score is selected. * **Yahtzee!:** A cheerful chime or applause sound when the player rolls 5 of a kind. ### 3. Gameplay Loop * **Turn Structure:** The player has up to 3 rolls per turn. * **Roll 1:** All 5 dice are rolled. * **Selection Phase:** The player taps dice to "hold" them (keep them from rolling again). Held dice should move to a separate area or highlight clearly. * **Roll 2 & 3:** The player re-rolls only the unheld dice. * **Scoring:** After the 3rd roll (or sooner if the player chooses), the player *must* select a category on the scorecard to assign points. * **Logic:** The system must calculate potential scores for every category based on the current dice face values (e.g., if rolling [2,2,2,5,6], the "Twos" slot highlights "6 points", "Three of a Kind" highlights "17 points"). * **Game Over:** The game ends when all 13 categories on the scorecard are filled. Display the final total score. ### 4. Mobile Controls & Interaction * **Orientation:** **Portrait Mode** is preferred to mimic holding a clipboard or scorecard naturally in one hand. * *Top half:* The 3D rolling arena. * *Bottom half:* The detailed 2D Scorecard UI (scrollable if necessary). * **Touch Controls:** * **Dice Selection:** Large, invisible hit-boxes around the dice for easy tapping. Tapping a die toggles its "Hold" state. Visually lift the die or move it to a "dock" area when held. * **Rolling:** A large, thumb-friendly "ROLL" button floating at the bottom center of the 3D view. * **Score Selection:** The scorecard rows should be tall enough (min 44px height) to be tapped easily. Tapping a valid score row confirms the turn. * **Feedback:** * **Haptic:** Trigger a short vibration (using `navigator.vibrate`) when the dice hit the table and when a score is confirmed. * **Visual:** Highlight valid scoring options in green when the rolling stops to guide the player. Add a "shake" animation to the screen or camera when dice collide hard. 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 Yatzy Yams is a digital adaptation of one of the world's most popular dice games. This classic board game has entertained families and friends for decades, and now you can enjoy it anytime, anywhere through your web browser. The game combines elements of luck and strategy as you roll five dice up to three times per turn, attempting to create specific scoring combinations.

Built with modern HTML5 technology, this version maintains all the excitement and strategic depth of the original while offering the convenience of instant online play. Whether you're a seasoned Yahtzee veteran or discovering this classic for the first time, you'll find yourself engaged in the satisfying challenge of maximizing your score through clever dice management.

Core Features

Authentic Yahtzee Experience

Enjoy the complete traditional Yahtzee ruleset with all 13 scoring categories. From simple number combinations to challenging patterns like Full House and Yahtzee, every element of the classic game is faithfully recreated.

Cross-Platform Compatibility

This HTML5 implementation works seamlessly across all modern devices. Play on your desktop computer during a break, or continue your game on your smartphone or tablet while traveling. The responsive design ensures optimal gameplay regardless of screen size.

Intuitive Interface

The clean, user-friendly design makes it easy to understand your scoring options at a glance. Clear visual indicators show which dice to keep, which combinations are possible, and how many rolls you have remaining.

Strategic Depth

While luck plays a role in dice rolling, Yahtzee rewards strategic thinking. Deciding which dice to keep, when to take risks for high-scoring combinations, and how to manage your scorecard creates engaging tactical gameplay.

Game Rules and Scoring

Basic Gameplay

Each turn consists of up to three dice rolls. After each roll, you choose which dice to keep and which to re-roll. After your final roll, you must assign your dice result to one of the 13 scoring categories on your scorecard.

Upper Section Scoring

  • Aces through Sixes : Score the sum of matching dice numbers
  • Bonus : Earn 35 extra points if your upper section totals 63 or more

Lower Section Combinations

  • Three of a Kind : Three matching dice (score sum of all five dice)
  • Four of a Kind : Four matching dice (score sum of all five dice)
  • 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 : Any combination (score sum of all five dice)

How to Play

Getting Started

Click the "Roll Dice" button to begin your turn. All five dice will roll simultaneously, showing random numbers from 1 to 6.

Making Strategic Decisions

After each roll, click on dice you want to keep - they'll be highlighted and won't roll again. Unselected dice will be re-rolled when you click "Roll Dice" again. You have up to three rolls per turn to achieve your desired combination.

Scoring Your Turn

After your final roll (or when you're satisfied with your dice), you must choose a scoring category. Click on any available category on your scorecard to assign your dice result. Each category can only be used once per game.

Winning Strategy Tips

  • Prioritize the upper section bonus early in the game
  • Save the Chance category for difficult-to-score combinations
  • Don't chase Yahtzee too aggressively - it's rare but rewarding
  • Consider taking a zero in a category to preserve better options

Why Play Yahtzee Yatzy Yams

Timeless Appeal

Yahtzee has remained popular for generations because it perfectly balances luck and skill. Every game feels different, yet the core strategic decisions remain consistently engaging.

Perfect for All Skill Levels

Whether you're a complete beginner or an experienced player, Yahtzee offers appropriate challenge. The rules are simple enough to learn quickly, but the strategic depth provides lasting entertainment.

Quick and Convenient

No setup time, no physical dice to lose, no scorecards to manage. Simply open your browser and start playing immediately. Games typically last 10-15 minutes, making it perfect for quick entertainment breaks.

Brain Training Benefits

Regular play helps maintain mental sharpness through probability calculation, pattern recognition, and strategic planning. It's entertainment that exercises your mind while providing relaxing fun.

Frequently Asked Questions (FAQ)