Play Golf Solitaire: clear seven columns by playing cards one rank above or below the foundation, with undo and hints.
Deal #-
Left 35
Moves 0
Stock 16
Played 0
Cleared 0
Fewest left -
Plays on the foundation
Tap the bottom card of a column to play it on the foundation when its number is one higher or one lower than the card on top of the foundation. Suits do not matter. Cards that fit show a ring and a tick. When nothing fits, tap the stock to turn the next card over. Clear all 35 column cards to win; the score is the number of cards left, so lower is better. Keyboard: Tab to the columns, the arrow keys move between the seven columns and the stock, Enter or Space plays or turns. U undoes and H gives a hint. A hint marks the game as aided, so it does not count towards your best.
A deal number is the seed of a shuffle, so the same number always gives the same layout, and the address of this page carries it. Seven columns of five cards are dealt face up, one more card starts the foundation, and the other 16 are the stock. Only the bottom card of a column can move. Number 13 (King) and number 1 (Ace) are neighbours only if you choose that option. Most deals can be cleared with the right order of plays and turns, but not all. The solver searches every position of column heights, stock size and top rank, each once, up to a limit, and drives the hint and the Winnable deals option: that option moves on to the next deal number until the solver has found a way to clear it. In the deals tried, about a quarter could be proven winnable when Kings and Aces are not neighbours and about two thirds when they are.
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
Clear all 35 cards from the seven columns by playing them onto the foundation, one at a time.
Wrap. By default a King and an Ace are not neighbours, so the chain stops at each end. Choose “Kings and Aces are neighbours” and the ranks go round, which makes the game much easier.
Winnable deals. The deal menu can ask for winnable deals only. From the next New deal, the game tries deal numbers in turn until its solver has found a way to clear one, and tells you which deal it settled on. Plain deals are harder to find: in the deals I tried, about one in four could be proven winnable. If the solver cannot prove one quickly, the game says so.
Undo and hints. Undo takes back moves one at a time, with no limit, until the game is over. A hint comes from the solver: it points at the column or the stock it would use next, and says whether the deal can still be cleared. A hinted game still counts as played, but it does not count towards your fewest cards left or your fewest moves.
Keyboard and screen reader. Press Tab to reach the columns. The arrow keys, Home and End move between the seven columns and the stock, and Enter or Space plays the card or turns the stock. U undoes and H gives a hint. A polite status message says each move, how many cards are left, and, if a card does not fit, which ranks do. Every column reads its bottom card and whether it can be played. The sound button is off until you press it, and the sounds are short, quiet tones. Cards are told apart by rank and suit shapes as well as colour.
The deal has a number. The page address carries it, along with the wrap choice, so copying the address, or using Copy result, gives someone else the same layout. Restart this deal starts it again from the beginning.
A card is a number from 0 to 51: the suit is the number divided by 13, rounded down, and the rank comes from the remainder. The shuffle is a Fisher-Yates driven by a small seeded generator, so a deal number always gives the same layout. The first 35 shuffled cards fill the columns in order, the next one starts the foundation and the last 16 are the stock. The seed itself is drawn from the browser’s secure random source, from 1 to 999,999, and an address can carry any whole number up to 4,294,967,295.
The rules live in a plain TypeScript module with no page code in it. Each move returns a new state, or nothing when the move is illegal, and the page only draws the result.
The solver. What can happen next depends only on three things: how tall each of the seven columns is, how many cards are left in the stock, and the rank on top of the foundation. The solver searches those positions depth first, each one once, trying plays (tallest column first) before turning the stock, and stops when it finds a clear or runs out of its budget of 120,000 positions. It returns the best line found, and the hint and the winnable-deal search are built on it. A deal it proves winnable really is winnable, because the line it returns is replayed move by move in the tests. A deal it fails to prove is not necessarily lost.
The tests check these claims:
Nothing is uploaded and there is no account. Games played, games cleared, the fewest cards left and the fewest moves in a clear are saved in your browser’s local storage as small numbers inside a small JSON object, under one key. Stored values that are not whole numbers within a sensible range are ignored when read. Clearing site data removes them. The only other state is the page address.
Everything runs locally in your browser.
Free to play, no ads, nothing uploaded. These games are original and are not affiliated with any other game or brand.