TOPICS
Search

War (Card Game)


War is a game in which players compare the exposed ranks of playing cards. In a deterministic model, the ranks 1 through n are all distinct. Each player exposes the front card of an ordered pile, and the winner, who exposes the highest rank, appends all exposed cards to the back of that player's pile. With a fixed pickup rule, the ordered piles form a finite state space. If no pile becomes empty, the game eventually repeats a state and subsequently cycles (Spivey 2010).

For three players and pickup in decreasing rank order, Rolando (2026) gave a 20-card round-robin deal that enters a cycle of least period 180 after five rounds. With arbitrary starting piles, 12 cards suffice for a cycle of least period 60, and fewer than 12 cannot sustain play with all three players active. The registered Lean proof checks both cycles and the lower bound for arbitrary starting piles. Rolando separately reports that 20 is the minimum for round-robin dealing, using an exhaustive computer search for the 19-card case. The author reports AI assistance with the search and formalization.


See also

Cards, Finite State Machine

Explore with Wolfram|Alpha

WolframAlpha

More things to try:

References

Rolando, C. "The Smallest Deck Admitting an Infinite Game of Three-Player War with Three Active Players." 2026. https://doi.org/10.5281/zenodo.24710463. https://data.palomar-registry.org/entries/PALOMAR-2026-12-03-000048-v1.json.Spivey, M. Z. "Cycles in War." Integers 10, 747-764, 2010. https://doi.org/10.1515/integ.2010.102.

Cite this as:

Weisstein, Eric W. "War (Card Game)." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/WarCardGame.html

Subject classifications