Skip to main content
cli-gamesGames

Solitaire

Klondike solitaire with deals you can replay and share

Mobile betaClassicscardclassic
$ solitaire

What you will see

Waste to column three, then the ace goes homereplay

m w 3 · m 5 f - name the piles, not the cards

Build each suit from Ace to King on the foundations.

Build columns down in alternating colors; only a King fills an empty column. Turn the stock one or three cards at a time.

Type m w 3 to move the waste card to column 3, m 3 f to send a card home, m 5 2 3 to move three cards from column 5 to 2, d to draw and u to undo.

Type deal 12345 to play any seed, or redeal to replay.

Scripts: type script to open Reveal Policy, where Bash scripts play fixed deals.

Reveal Policy

Write Bash scripts that play fixed draw-one and draw-three deals, using only what the board shows and the legal moves.

Durable workspace

~/solitaire

Read README.txt; start with policy.sh. Your files remain yours between runs.

Sensors

  • scan [tableau|waste|foundations]
  • legal [all|reveal|waste|home]
  • status [OUTCOME]

Actions

  • draw
  • move FROM TO [COUNT]
  • auto
  • undo

Practice evidence

histogram · gif · replay · run receipt · account best

Script runs are unranked practice. Histograms compare submitted results.

Ruleset: solitaire-reveal-policy-v1

Server proof

Reveal Policy Pack

Replay a saved policy twice on the server against five fixed full-run fixtures and issue a shareable verified receipt.

prove · 5 fixtures · source transient

Pack: solitaire-reveal-pack-v1

Practices: Bash policies · partial observability · state management · branching · regression fixtures

Run $ solitaire --script

How this command behaves

  • Built for a solo session
  • Save and resume your game
  • Track your statistics and high scores
  • Build and keep real Bash files in ~/solitaire
  • Automation records include histogram and gif and replay and run receipt
  • Replay a completed policy on the server for a shareable verified receipt
  • Runs in the browser; nothing to install
  • Playable entirely from the keyboard

Start it from the prompt

Usage

solitaire [savename] | solitaire --script

Aliases

klondike / sol

Opens the terminal in Solitaire.

Run $ solitaire