Compare adjacent pairs before compacting the grid.
Monte Carlo shows 25 cards in a five-by-five grid with 27 in stock. Equal ranks pair when their cells touch horizontally, vertically, or diagonally. After removal leaves gaps, Tidy and refill shifts surviving cards left in reading order and fills vacancies from stock.
Last updated: October 2026
Use the eight neighboring cells
A card can pair with another equal rank in any touching cell, including a diagonal. Removing a pair leaves two holes; it does not move the surviving cards or create new neighbors. A pair elsewhere stays available unless you use one of its cards. The positions change when you press Tidy and refill.
For example, equal-rank cards in row two columns two and three can pair. Equal-rank cards in row two column two and row three column three can also pair diagonally. Cards two columns apart are not adjacent, even if the intervening cell is empty.
Seed 1: compaction separates a diagonal pair
Open Monte Carlo seed 1. Pair the Jack of clubs at row 2, column 5 with the Jack of diamonds directly below it. The Two of hearts at row 2, column 4 and Two of diamonds at row 3, column 3 still touch diagonally.
If you press Tidy and refill now, the Two of hearts stays at row 2, column 4, but the Two of diamonds slides to row 3, column 2. They are no longer adjacent. Undo the compaction and you can remove those Twos first. This demonstrates a pair you can lose access to; it does not establish which complete play wins the deal.
Plan the compaction
Tidy and refill gathers surviving cards in reading order, then fills the vacancies from stock. Count the holes before a card to predict how far it moves. At a row boundary, a one-cell shift can move a card from the left edge of one row to the right edge of the previous row. Those edges are not adjacent for pairing.
This site lets you compact while other pairs remain, as in Solitaire Forever. Goodsol describes filling after all available pairs are removed. With an empty stock, our button remains available only if closing a gap will move a surviving card; empty cells at the end alone do nothing.
Win by removing all 52 cards as pairs. An isolated matching rank may become adjacent after compaction, but the stock order is unknown until cards are dealt. Nestor also removes equal ranks, though its access is determined by column tops rather than grid neighbors.