Klondike Solitaire

Seele01-Flash
By
Klondike Solitaire is the classic card game you know and love, now available to play free online. Enjoy traditional solitaire gameplay with mobile-friendly controls and no time pressure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Klondike Solitaire". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Camera & Perspective**: Use a fixed **Orthographic Camera** to ensure card dimensions remain consistent without perspective distortion, mimicking a classic 2D feel but with 3D depth. The background should be a classic, high-quality **Green Felt texture** (resembling a casino table). * **Card Models**: Create 3D card meshes using `BoxGeometry` (very thin Z-axis). * **Front**: Use a texture atlas or canvas texture generation for standard playing card faces (Ace to King, 4 suits). Text should be bold and readable on small screens. * **Back**: A classic pattern (e.g., intricate red or blue geometric design) matching the "Vintage/Classic" aesthetic of the provided logo. * **Visual Feedback**: When cards are stacked, they must cast subtle shadows (using `DirectionalLight` and `ShadowMap`) to visually separate the piles. * **Optimization**: Use **Texture Atlases** to reduce draw calls. Keep geometry simple; simulate rounded corners using alpha maps rather than high-poly meshes to ensure 60FPS on mobile devices. ### 2. Audio Requirements * **Background Music (BGM)**: A relaxing, looping "Lounge Jazz" or "Soft Piano" track. It should be unobtrusive to support the "casual, no timer" description. * **Sound Effects (SFX)**: * **Card Flip**: A crisp, paper-like "snap" sound. * **Card Slide**: A soft friction sound (cloth on paper) when dragging. * **Valid Move**: A satisfying "thud" or "click" when a card locks into place. * **Invalid Move**: A subtle low-pitch "bump" or spring sound. * **Shuffle/Deal**: A rapid "riffle" sound for the start of the game. ### 3. Gameplay Loop * **Setup**: Standard 52-card deck. Deal into 7 Tableau columns (1 card in the first, up to 7 in the last), top card face up. Remainder goes to the Stock pile. 4 Empty Foundation slots. * **Rules**: * **Tableau**: Build down in alternating colors (e.g., Red 6 on Black 7). Move sequences of cards together. Only Kings can be placed in empty Tableau slots. * **Foundation**: Build up by suit (Ace -> King). * **Stock/Waste**: Click Stock to deal 1 or 3 cards (configurable) to Waste. * **Automation (Key Feature)**: As per the description, **Aces and Twos should automatically animate** to the Foundation piles immediately when exposed. * **Casual Mode**: **No score counter and no timer**. Focus purely on the puzzle aspect. * **Victory**: When all 52 cards are in the Foundations, trigger a "Winning Cascade" animation (cards bouncing off the screen). ### 4. Mobile Controls & Interaction * **Touch Interaction**: * Implement a **Raycaster** system for touch detection. * **Drag & Drop**: Users can drag cards from Tableau/Waste. The dragged card/stack should visually lift (Z-axis +5) and follow the finger smoothly. * **Tap to Move**: A single tap on a valid card should automatically move it to the best available spot (Foundation first, then Tableau) to reduce user friction on small screens. * **UI Layout**: * **Orientation**: Responsive design. In Portrait, stack the Stock/Waste/Foundation at the top. In Landscape, place them to the side if vertical space is tight. * **Buttons**: Place "Undo" and "Restart" buttons at the **bottom of the screen** within the thumb's easy reach zone (minimum touch target 44x44px). * **Hit Area**: Expand the invisible hit area around cards slightly to make selecting thin stacks easier on mobile. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Klondike Solitaire

Klondike Solitaire is the most popular and beloved version of solitaire card games, featuring the traditional green background and classic gameplay that millions of players enjoy worldwide. This online version maintains all the authentic rules and charm of the original game while adding modern conveniences like mobile compatibility and instant browser play.

With a solid 4.0/5 rating from over 1,265 players, this implementation of Klondike Solitaire delivers exactly what solitaire enthusiasts expect: clean graphics, smooth gameplay, and faithful adherence to traditional solitaire rules.

Core Features

Classic Solitaire Experience

This game stays true to the original Klondike Solitaire rules that have entertained players for generations. The familiar layout includes seven tableau columns, four foundation piles, and a stock deck - everything exactly where you'd expect it to be.

Mobile-Friendly Design

Play seamlessly on any device! The game automatically adapts to your screen size, whether you're on a desktop computer, tablet, or smartphone. Touch controls work perfectly for mobile play, making it easy to drag and drop cards with precision.

Relaxed Gaming Environment

  • No time pressure : Play at your own pace without countdown timers
  • No scoring system : Focus purely on the puzzle-solving aspect
  • Unlimited undos : Freely experiment with different moves
  • Easy restart : Get a fresh deck anytime you want a new challenge

Instant Play Technology

Built with HTML5 technology, the game loads instantly in any modern web browser. No downloads, no installations, no waiting - just click and play immediately.

Game Rules & Strategy

Basic Objective

Your goal is to build four foundation piles, one for each suit (Hearts, Diamonds, Clubs, Spades), arranged in ascending order from Ace to King.

Gameplay Mechanics

  • Foundation building : Each foundation must contain only one suit, starting with Ace and ending with King
  • Tableau manipulation : Move cards between the seven columns in descending order, alternating colors
  • Stock deck : Click to reveal new cards when you need more options
  • Auto-placement : Aces and twos automatically move to foundations, while higher cards require manual placement

How to Play

Getting Started

  1. Examine your layout : Look at the seven tableau columns and identify immediately playable cards
  2. Find Aces : These automatically go to the foundation piles to start each suit
  3. Plan your moves : Look for opportunities to uncover face-down cards in the tableau

Controls

  • Click and drag : Move cards between piles
  • Click stock deck : Reveal new cards from the remaining deck
  • Right-click or double-click : Quickly move eligible cards to foundations
  • Undo button : Reverse your last move if needed
  • Restart button : Begin with a fresh, shuffled deck

Winning Strategy Tips

  • Prioritize uncovering face-down cards in the tableau
  • Don't automatically move cards to foundations - sometimes keeping them in play provides more options
  • Empty tableau columns are valuable - use them strategically to manipulate card sequences
  • Always check if moving a card will uncover a useful hidden card beneath

Why Play This Klondike Solitaire

This version of Klondike Solitaire offers the perfect balance of authenticity and modern convenience. Whether you're a longtime solitaire fan or new to the game, you'll appreciate:

  • Authentic experience that respects traditional solitaire rules
  • Stress-free gameplay with no timers or pressure
  • Universal accessibility across all devices and platforms
  • Instant entertainment whenever you need a quick mental break
  • Completely free with no hidden costs or premium features

Perfect for office breaks, commute entertainment, or relaxing at home, Klondike Solitaire provides endless hours of engaging puzzle-solving fun.

Frequently Asked Questions (FAQ)