The Shell Game - Classic Street Magic Puzzle

Seele01-Flash
By
The Shell Game is a classic street magic puzzle that tests your observation and concentration skills. Follow the ball under the moving shells and win virtual money by guessing correctly.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**The Shell Game**" (also known as Thimblerig). Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A clean, stylized 3D aesthetic. The view should be a fixed isometric perspective (approx 45 degrees) focused on a surface, optimizing for mobile portrait mode. * **Core Models:** * **Shells:** Three (3) identical inverted hemispherical objects resembling walnut shells. Use `SphereGeometry` (phiLength = PI) with a textured brown material (bump map preferred for walnut rugosity). * **The Ball:** A small, shiny black or metallic sphere (`MeshStandardMaterial` with high roughness) that fits completely under a shell. * **Surface:** A textured surface resembling a wooden crate or a street table. * **Lighting:** A setup with `AmbientLight` and a `DirectionalLight` casting soft shadows to ground the objects. The lighting must ensure the ball is completely hidden in shadow when covered. * **Mobile Optimization:** Use simple geometries (low polygon count) and share materials to reduce draw calls. Ensure the background is a calming gradient (e.g., soft blue to white) to match the original game's airy feel. ### 2. Audio Requirements * **BGM:** A light, jazzy, or lo-fi urban instrumental track that loops seamlessly. * **Sound Effects (SFX):** * **Slide:** A friction sound (wood-on-wood) that plays whenever a shell moves. * **Clack:** A hollow wooden impact sound when a shell is lifted or placed down. * **Win:** A cash register "cha-ching" or coin clatter. * **Lose:** A low-pitched "womp-womp" or a buzzer. * **UI:** Soft clicks for betting buttons. ### 3. Gameplay Loop * **State Machine:** 1. **Betting Phase:** Player selects a wager amount via UI. 2. **Reveal Phase:** All shells lift to show the ball's starting position, then lower to cover it. 3. **Shuffle Phase:** The shells randomly swap positions. The animation must use smooth interpolation (ease-in-out) so the movement looks natural. The ball must logically move with its covering shell (invisible to the player). Speed and number of swaps should increase with consecutive wins. 4. **Selection Phase:** The player taps a shell. 5. **Resolution Phase:** The selected shell lifts. If the ball is there, add winnings to the balance; if not, deduct the bet. * **Difficulty Scaling:** Start with slow swaps (1.5s duration). Decrease swap duration by 10% after every win. ### 4. Mobile Controls & Interaction * **Touch Controls:** Implement `Raycaster` for touch detection. Support `touchstart` events for immediate responsiveness (zero latency). * **Screen Orientation:** Portrait mode preferred. * **UI Layout:** * **Top:** Current Balance and Current Bet display (large, readable font). * **Center:** The 3D game view (interactive area). * **Bottom:** Large, thumb-friendly buttons for "Bet $10", "Bet $50", and "Start". Minimum touch target size: 44x44px (ideally larger). * **Feedback:** * **Visual:** Highlight the touched shell slightly (emission or color tint) before lifting. * **Haptic:** Trigger `navigator.vibrate(50)` when the player taps a shell or wins. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

The Shell Game is a timeless puzzle that brings the excitement of street magic to your browser. This classic brain teaser challenges you to follow a ball as it's hidden under one of three shells, which are then shuffled around quickly. Your job is to keep track of which shell contains the ball and place your bet accordingly.

With a rating of 3.2 out of 5, this game has captured the attention of puzzle enthusiasts who enjoy testing their visual tracking abilities and concentration skills. Unlike real street games where you might get cheated, this digital version offers fair gameplay where your observation skills truly determine success.

Core Features

Classic Gameplay Mechanics

The Shell Game faithfully recreates the traditional street magic experience in a digital format. Watch carefully as the ball is placed under one shell, then track it through increasingly complex shuffling patterns.

Progressive Difficulty

As you advance through rounds, the shell shuffling becomes faster and more intricate, providing escalating challenges that keep the game engaging and test your limits.

Virtual Betting System

Place virtual bets on your choices and watch your winnings grow. The betting system adds excitement and strategy to each round, making every decision meaningful.

Brain Training Benefits

This puzzle game serves as excellent mental exercise, improving: - Visual tracking abilities - Concentration and focus - Pattern recognition skills - Quick decision-making

Instant Accessibility

  • Completely free to play with no hidden costs
  • No download required - plays directly in your web browser
  • Cross-platform compatible - works on desktop computers, tablets, and smartphones
  • Suitable for all ages with family-friendly content

Game Mechanics

The Shell Game operates on simple but engaging mechanics:

  1. Bet Placement : Start each round by placing your virtual bet
  2. Ball Placement : Watch as the ball is placed under one of three shells
  3. Shuffling Phase : Observe carefully as the shells are moved around
  4. Final Choice : Click on the shell you believe contains the ball
  5. Result : Discover if your observation skills paid off

Winning Strategy Tips

  • Focus intensely during the shuffling phase
  • Follow the edges of your target shell rather than trying to track the entire shell
  • Stay calm and don't let fast movements distract you
  • Practice regularly to improve your visual tracking skills

Operation Guide

Playing The Shell Game is straightforward:

  • Mouse Click : Place bets and select shells
  • Visual Tracking : Use your eyes to follow the shell containing the ball
  • Timing : Watch the entire shuffling sequence before making your choice

The game requires no complex controls - success depends entirely on your observation and concentration abilities.

Why Play This Game

Perfect Mental Exercise

The Shell Game provides excellent brain training disguised as entertainment. Regular play can help improve your attention span, visual processing speed, and concentration abilities.

Nostalgic Street Magic Experience

Experience the thrill of classic street magic without any risk of being cheated. This digital version maintains all the excitement while ensuring fair play.

Quick Gaming Sessions

With rounds lasting just seconds to minutes, The Shell Game is perfect for: - Short breaks during work or study - Mental warm-up before other activities - Casual entertainment when you have limited time - Skill building in short, focused sessions

Universal Appeal

The simple concept makes this game accessible to players of all ages and backgrounds, while the challenging gameplay keeps it engaging for experienced puzzle solvers.

Social Competition

Challenge friends and family members to see who has the best observation skills, creating fun competitive moments and shared experiences.

Frequently Asked Questions (FAQ)