Cards & Graph Theory • 13 min read • Published 2026-11-01

TriPeaks & Pyramid Solitaire Algorithms: Topological Sorting and Chain Cascades

Master pairing and elevation solitaire games. Directed acyclic graph (DAG) clearing, streak multiplier optimization, and reserve stock management.

TriPeaks & Pyramid Solitaire Algorithms: Topological Sorting and Chain Cascades

Among the vast family of patience card games, TriPeaks (invented by Robert Hogue in 1989) and classical Pyramid Solitaire stand out for their striking visual architecture. Rather than relying on traditional multi-column cascades like Klondike, both games arrange cards into tiered triangular peaks where cards partially overlap one another.

On our games portal, Tripeaks Pyramid Cards and Pyramid Solitaire Pair 13 provide fast, responsive implementations of these classic geometric layouts. In computational mathematics, clearing overlapping card formations is an authentic exercise in Topological Graph Sorting on a Directed Acyclic Graph (DAG).

Whether your objective is achieving the highest streak combo multiplier in TriPeaks or systematically pairing cards to sum to 13 in Pyramid, understanding the underlying network topology guarantees higher win rates and explosive scoring runs.


1. Network Architecture: The Overlapping Directed Acyclic Graph (DAG)

In both TriPeaks and Pyramid, cards cannot be cleared arbitrarily. A card is considered “locked” or “covered” if one or more cards in lower rows physically overlap its corners.

                      PYRAMID TOPOLOGICAL DEPENDENCY DAG
                                   [ Card 1 ] (Peak - Row 1)
                                   /        \
                            [ Card 2 ]    [ Card 3 ] (Row 2)
                            /        \    /        \
                     [ Card 4 ]    [ Card 5 ]    [ Card 6 ] (Row 3)

In formal graph theory:

  • Each card represents a vertex ($v \in V$).
  • Each overlap constraint represents a directed dependency edge ($e = (u, v)$), meaning card $u$ cannot be cleared until card $v$ is first removed.
  • A card is active and eligible for removal if and only if its in-degree $\text{in-deg}(v) = 0$ in the remaining subgraph.
                  TRIPEAKS THREE-PYRAMID HORIZONTAL MATRIX
        Peak 1             Peak 2             Peak 3
         [ 1 ]              [ 2 ]              [ 3 ]       (Row 1: 3 Cards)
        /     \            /     \            /     \
      [4]     [5]        [6]     [7]        [8]     [9]    (Row 2: 6 Cards)
      / \     / \        / \     / \        / \     / \
    [10][11][12][13]   [14][15][16][17]   [18][19][20][21] (Row 3: 12 Cards)
   ─────────────────────────────────────────────────────────
    [ 28 Exposed Base Cards (Row 4) Across All Three Peaks ]

Notice that the interior cards of overlapping pyramids (e.g., Cards 5, 6, 7, 8 in TriPeaks, or Card 5 in Pyramid) share dependencies across multiple peaks. Removing a single overlapping card unlocks pathways into the heart of two separate structures simultaneously.


2. TriPeaks: The Mathematics of Long Streak Multipliers

TriPeaks is governed by a modulo-13 adjacency rule: a face-up card in the tableau may be cleared onto the waste pile if its value is $\pm 1$ of the current waste card (with Aces wrapping around Kings: $K \leftrightarrow A \leftrightarrow 2$).

                    THE ACCUMULATING STREAK MULTIPLIER
  Cards Cleared in Run:   1st    2nd    3rd    4th    5th    6th    7th    8th
  Point Value per Card:   100    200    300    400    500    600    700    800 pts
  Accumulated Total:      100    300    600   1000   1500   2100   2800   3600 pts!
  Peak Clear Bonus:                                                +5,000 pts!

Scoring in TriPeaks is strictly quadratic: clearing an 8-card unbroken streak yields 3,600 points, whereas clearing eight individual cards with stock card draws between each yields only 800 points.

The Streak Optimization Algorithm

When examining available moves, players face branching decision forks. Consider a waste card of $7$, with both a $6$ and an $8$ available on the board:

                            BRANCHING DECISION FORK
                                 Current: [ 7 ]
                                 /            \
                       Option A /              \ Option B
                               ▼                ▼
                       Pick [ 6 ]              Pick [ 8 ]
                               │                │
                       Next: [ 5 ]             Next: [ 9 ]
                               │                │
                       Next: [ 6 ]             Next: [ 10 ]
                               │                │
                       Next: [ 7 ] (Deadlock)  Next: [ J ] ──► [ Q ] ──► [ K ]!
                     (Chain Length = 4)       (Chain Length = 6 + Peak Clear!)

An optimal move does not look at the immediate card alone. It traverses the Lookahead Dependency Tree to discover the longest continuous sequence of adjacent cards ($V_1, V_2, \dots, V_k$) that can be chained without drawing from the reserve stock.


3. Pyramid Solitaire: The Sum-to-13 Combinatorics

In Pyramid Solitaire Pair 13, cards are cleared by pairing two active cards whose values sum to exactly $13$:

                       THE SUM-TO-13 PAIRING MATRIX
   Card A Rank         Numerical Value   Matching Card B Rank    Numerical Value
   ─────────────────────────────────────────────────────────────────────────────
   King (K)            13                AUTOMATIC SINGLE CLEAR  (No pair needed!)
   Queen (Q)           12                Ace (A)                 1
   Jack (J)            11                Two (2)                 2
   Ten (10)            10                Three (3)               3
   Nine (9)            9                 Four (4)                4
   Eight (8)           8                 Five (5)                5
   Seven (7)           7                 Six (6)                 6

There are only 7 unique rank pairings. Because each rank contains exactly 4 cards across a standard deck, there are at most 4 complementary partners for any given card in the pyramid.

The Fatal Pyramid Blockade: Self-Covered Pairs

The most catastrophic failure mode in Pyramid Solitaire occurs when a card physically overlaps its only remaining matching partner:

                    THE SELF-COVERING DEADLOCK PARADOX
                                  [ Queen ♥ ] (Value: 12)
                                  /         \
                             [ Ace ♠ ]     [ 7 ♦ ]
                           (Value: 1)

In the configuration above, the $Q\heartsuit$ requires an Ace to clear. However, the only active Ace ($A\spadesuit$) is physically pinned under the $Q\heartsuit$! Unless another Ace exists in the stock or reserve, this branch represents an Unsolvable Deadlock.

Before making any move in Pyramid Solitaire, audit all four cards of the complementary rank. If three Queens are already burned in the waste pile and the fourth Queen is pinned under the final Ace, the game is mathematically unwinnable.


4. Empirical Solvability and Strategy Comparison

Computer simulations traversing the full game trees of both titles reveal dramatic differences in solvability and strategy profiles:

                  TRIPEAKS VS PYRAMID SOLITAIRE BENCHMARK
 Metric                     TriPeaks Solitaire             Pyramid Solitaire (Pair 13)
 ─────────────────────────────────────────────────────────────────────────────────────
 Theoretical Win Rate       ~92.0% (With optimal play)     ~28.5% (Inherently restrictive)
 Average Human Win Rate     ~65.0%                         ~12.0%
 Primary Failure Mode       Stock deck exhaustion          Pyramid blockade deadlocks
 Strategic Core             Maximizing streak chains       Preserving complementary ranks
 Role of Reserve Stock      Streak breaker (Use sparingly) Exhaustive search buffer
 Card Visibility            Mixed (Face-up & face-down)    100% Face-up at start

Pyramid Solitaire is fundamentally more punishing than TriPeaks because of its rigid mathematical pairings. TriPeaks gives players bidirectional choices ($\pm 1$), whereas Pyramid demands strict additive equality ($A + B = 13$).


5. Master Tactical Playbook for High-Elevation Games

To dominate both titles on desktop and mobile browsers, apply these five foundational rules:

Rule 1: Clear the Peaks Evenly

In TriPeaks, novice players often completely demolish one peak while leaving the other two peaks untouched. This severely restricts late-game card diversity. By shaving down all three peaks simultaneously, you expose a wider palette of active cards, maximizing your probability of finding a $\pm 1$ connection on any given turn.

Rule 2: Free Trapped Kings Instantly in Pyramid

Kings clear off the board with zero partner requirement. Whenever a King becomes exposed in Pyramid Solitaire, clear it immediately. It costs zero stock cards and instantly unlocks the parent dependencies above it.

Rule 3: The Stock Pacing Invariant

In TriPeaks, treat drawing from the reserve stock as an Emergency Fallback, not a casual browsing tool. Every stock draw resets your streak multiplier to zero. Only draw from the stock when every possible branch on the active tableau has been completely exhausted.

Rule 4: Count Burned Partners in Pyramid

Before pairing a 7 on the board with a 6 from the stock, verify if a 7 is also sitting inside the pyramid. Always pair cards from the pyramid with each other whenever possible, rather than pairing a pyramid card with a stock card. Clearing two pyramid cards in a single move accelerates topological unblocking by $200%$.


6. Mathematical Connection to Solitaire Ecosystems

The spatial graph reasoning honed in TriPeaks and Pyramid directly enhances performance in classic patience games:

  • In Solitaire Klondike, uncovering face-down cards mirrors the peak exposure mechanics of TriPeaks.
  • In Spider Solitaire Two Suit, managing descending sequences requires the same multi-step chain foresight seen in high-scoring TriPeaks runs.

7. Frequently Asked Questions (FAQ)

Can every TriPeaks game be won?

Not quite, but close. While approximately $92%$ of TriPeaks deals are mathematically solvable with perfect knowledge of hidden cards, imperfect information reduces human win rates to roughly $60% \text{ to } 70%$. Occasionally, an unfortunate sequence of low-value cards in the stock will fail to bridge gaps between disconnected peak values.

Why is Pyramid Solitaire’s win rate so much lower than TriPeaks?

Pyramid Solitaire requires exact additive pairs ($X + Y = 13$). If the cards in the pyramid are distributed such that lower-row cards require higher-row cards of the same rank to clear, or if three copies of a crucial rank are buried deep under a single blocking card, the tableau becomes mathematically frozen.

Does Ace wrap around King in all TriPeaks versions?

In modern digital implementations such as Tripeaks Pyramid Cards, yes: Ace wraps around King both upwards ($Q \to K \to A \to 2$) and downwards ($2 \to A \to K \to Q$). This circular modular arithmetic ($\mathbb{Z}_{13}$) is what enables massive 15-to-20 card unbroken chain combos.

Featured Games Mentioned in This Guide

SW

Combinatorial Topology & Solitaire Systems Lead

The ShishaWare Games editorial team consists of passionate web engineers, computational puzzle analysts, and classic gaming enthusiasts dedicated to curating high-performance, ad-free web experiences.