# Felt Solitaire: Klondike on a Green Felt

> Play draw-three Klondike on a green felt, in one small offline HTML file: seven tableaux build down in alternating colours, four foundations build up from ace to king. All 52 faces are drawn in code — pip layouts, procedural court portraits, hatched backs — plus drag stacks, tap-select, double-tap to the foundations, an oracle hint, undo and an auto-finish.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Game creation](https://www.sandbase.ai/skills/games)
- Version: 0.1.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/games/felt-solitaire

## What you get

Bring the felt and the rules, the draw and the scoring, and optionally the hint, undo and auto-finish, the palette and the UI text. The Skill returns a downloadable Skill (the solitaire project, a customize guide, headless verification) and one playable example deal.

## Install

Download the Skill package from https://www.sandbase.ai/skills/games/felt-solitaire (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/felt-solitaire make a Klondike solitaire where the player builds <your tableaux> on <your felt>, under <your draw and scoring>
```

## How it works

1. **Open the game folder** Felt Solitaire lives in assets/felt-solitaire. Run npm install, then npm run dev to play at the printed URL. The agent edits src/config.js for table layout, palette and both locales, the core files for state, renderer and audio, and src/main.js for pointer input and the window.__scene hooks. A prompt might name a draw-three table on dark blue felt with English and Chinese text.
2. **Play Klondike draw three** Seven tableaux build down in alternating colours, the stock deals three to the waste per tap, and four foundations build up by suit from ace to king. Drag a face-up ordered tail, tap to select then tap a destination, or double-tap to send a card home. Keys are Enter for the oracle move, A auto, H hint, U undo and Escape to clear.
3. **Bundle and verify the table** npm run build:single writes dist-single/index.html, the hosted bundle, and npm run shoot runs the scripted check in Chromium. It covers the menu, a deal, stock draws and a recycle, a hint, a dragged move, undo, pause, mute, the Chinese UI and a 390 by 844 phone draw. The verified deal uses seed 525924222 with 52 cards across 7 columns.

## FAQ

### How are the Felt Solitaire cards drawn?

Felt Solitaire draws all 52 faces in Canvas 2D code with no sprite sheet. Pips follow the classic symmetrical layouts, court cards are small procedural portraits with crown, circlet or cap silhouettes, and backs are a hatched lattice. No image, font or audio file ships, and the game has zero runtime dependencies.

### Does Felt Solitaire have draw-one or scoring?

No. Felt Solitaire is fixed draw-three Klondike with a fresh shuffle per seed. It has no draw-one mode, no scoring, no timer pressure and no daily deals. Each load is a single session without persistence or statistics, so closing the page ends the game.

### Will Felt Solitaire auto-finish play the game for me?

No. Felt Solitaire auto-finish only clears a won position, with every tableau card face-up, or resolves the foundation sends that are legal right now. Hint marks the first legal move the oracle finds, trying foundation sends first, then tableau lifts, then a draw. Undo rewinds one move and un-flips any card it revealed.

### Is Felt Solitaire free to play and build?

Felt Solitaire calls no model and needs no key; the page makes no network requests, so playing or rebuilding it costs nothing on SandBase.

### Does Felt Solitaire work on phones?

Yes. Felt Solitaire lets you tap the stock, drag cards and double-tap to the foundations on a touch screen. The headless check includes a tap-to-draw on a 390 by 844 viewport, verified under touch emulation rather than on real devices. Drag uses pointer capture, so a lifted tail never detaches mid-drag.

## Examples

- Felt Solitaire Klondike game (scene)
- First Deal (video)
