Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Games & Chance 4 min read

War Card Game Length

Why the simplest game takes the longest.

War is essentially a random walk: each player’s card count drifts up and down by 1 (or more during wars) until one player reaches 52.

Random walk model

With two players starting at 26 cards each, the game ends when one reaches 0.

E[steps]∼O(n2) for random walkE[\text{steps}] \sim O(n^2) \text{ for random walk}

Gambler’s ruin with n=26

  1. 1

    Step

    E \approx 26 \times 26 = 676 (simplified)

Answer

Hundreds of turns expected

Why “war” events extend it

When cards tie, 3 extra cards are placed plus 1 flipped. These multi-card exchanges cause big swings that can extend the game dramatically.

The formula behind it

Expected Value

E(X)=∑xi⋅P(xi)E(X) = \sum x_i \cdot P(x_i)
See the full formula, variables and more examples

The takeaway

War’s simplicity is deceptive — the random walk guarantees a long slog.

Back to all stories