The classic card game of War, against the computer
This War card game online puts you up against the computer with a standard 52-card deck or a short 32-card deck. There is nothing to install and no account: the game in progress stays in your browser and picks up where you left off. Play one trick at a time, the way you would on a rainy afternoon, or let the game run on its own and watch the piles swing back and forth.
The idea is simple: the higher card takes the lower one. Cards rank from 2 (or 7 with 32 cards) up to 10, then jack, queen, king and ace, the highest card. Suits don't matter.
How to play
- Pick a "Deck": "52 cards" deals 26 each, "32 cards" deals 16 each, using only the ace and the 7 through king.
- Click "Play a trick": you and the computer each turn over the top card of your pile.
- To speed things up, "Auto-play" plays trick after trick at the "Auto-play speed" you choose: 1, 4 or 20 tricks per second. "Skip to the end" plays out the whole game instantly.
- "New game" deals again. The counters show tricks played, wars and how many cards each player holds.
On a keyboard, the space bar plays a trick (or starts a new game once one is over) and A starts or stops auto-play. If you change a setting before the first trick, a fresh game starts straight away; once play has begun, the change applies from the next game.
What happens in a war
When both cards have the same rank, it's war. Each player lays one card face down, then one card face up, and the higher face-up card takes the whole pile. Another tie means another war. For example: king against king, each player puts down a face-down card (a 2 and a 3), then ace against 5. The ace wins and its owner collects 6 cards.
That is the version used here. Some families play with three face-down cards instead of one; that variant isn't offered. A player who runs out of cards to lay the face-down and face-up cards during a war loses the game, and any cards they have left go to the winner. If neither player can finish the war, the game is a draw.
Won cards and the trick limit
By default, collected cards are "Added back in random order" to the bottom of the winner's pile. With "Added back in order", the winner's cards go under first, in the order they were played, followed by the loser's. That mimics picking up the pile without shuffling, but a game can then loop forever, so the "Trick limit" (500, 1,000, 3,000 by default, or 10,000) ends the game and calls it a draw.
Is there a strategy?
Honestly, no. War is pure luck: nobody chooses which card to play, and the result is settled by the order of the cards after the deal. What does vary is how long it takes. Across 1,000 simulated 52-card games with random pick-up, a game lasted about 360 tricks on average, and the longest ran to 2,771. With the fixed order, the average drops to around 230 tricks. Ties are more common with 32 cards: on the very first trick, the chance of a war is 3 in 31, about 9.7%, against 3 in 51, about 5.9%, with a full deck.
The game still has its uses. Young children learn which cards beat which and practise comparing numbers, and it's a calm way to pass a few minutes in a waiting room. If you want a game where your decisions matter, try a round of free Klondike solitaire. Playing at home with a real deck? Use the random card generator to see who goes first and a score keeper to track games won.
Frequently asked questions
Can I get better at War?
No. No setting favours either player, so over many games you will win about as often as the computer does.
Why did my game end in a draw?
Either the "Trick limit" was reached, or neither player had enough cards left to finish a war.
Are my statistics saved?
Yes, on this device only: games finished, wins with their percentage, losses, draws, the fastest win and the longest game, counted in tricks. Nothing is sent anywhere.
How long does a game take?
A few hundred tricks on average with 52 cards. At 4 tricks per second, a typical 360-trick game takes about a minute and a half; "Skip to the end" shows the result right away.