TOPICS
Search

War


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.

For arbitrary starting piles with k>=2 players and pickup in decreasing rank order, Hughes (2026) obtained the exact minimum k(3k-1)/2 cards for a cycle in which every player stays active. At this minimum every cycle has least period P(k)=lcm(1,...,2k-1) with the seats labeled. Up to permutations of the seats there are product_(j=k)^(2k-1)j!/P(k) such cycles. The Palomar Registry records Lean verification of the threshold, period, and count. Hughes credits AI with discovering and formalizing the result.


See also

Cards, Finite State Machine

Explore with Wolfram|Alpha

References

Hughes, T. B. "The Smallest War Cycle Keeping k Players Active Has k(3k-1)/2 Cards." 2026. https://doi.org/10.5281/zenodo.24721386. https://data.palomar-registry.org/entries/PALOMAR-2026-12-03-000100-v1.json.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." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/War.html

Subject classifications