Stratego Game Online

How to Beat the Computer at Stratego

To beat the computer at Stratego, keep your strongest pieces hidden, leave some pieces unmoved, attack its front row, where it never puts a Bomb, and watch where it retreats: when your pieces come within three squares of its Flag, it tends to pull pieces back toward it. The computer can't see your ranks. It only knows what a human opponent would know, and it does not read your bluffs.

These tips are for Hidden Ranks, the free Stratego-style computer opponent on this site. It is our own game, not the official Stratego and not made by Jumbo. Every tip below is checked against the game's code, and the numbers come from 20,000 computer setups and 3,000 computer-vs-computer games we ran on December 1, 2026.

Play Stratego vs Computer

Checked against the Hidden Ranks code on December 1, 2026. Figures: 20,000 computer setups and 3,000 computer-vs-computer games.

How to beat the computer at Stratego: 7 rules

  1. Hide your Marshal as long as you can. Every fight shows both ranks. Once the computer knows where your Marshal is, its weaker pieces step away from it, and on Hard its Spy comes looking for it.
  2. Leave some pieces unmoved on purpose. To the computer, a piece that has never moved might be a Bomb or your Flag. On Hard it avoids attacking such pieces with its Marshal and General while you still have Bombs, and sends Miners instead.
  3. Attack its front row without fear of Bombs. In 20,000 setups the computer never put a Bomb or its Flag on its front row. Its Marshal or General can still stand there, so test those pieces with Scouts first.
  4. Test with Scouts, not officers. A Scout that hits an unknown piece shows you its rank. Losing a Scout costs little; losing your General to a Bomb can cost the game.
  5. Watch where it retreats. When your pieces come within three squares of its Flag, the computer tends to pull other pieces back toward it. Several pieces stepping back toward the same corner point to the Flag.
  6. Don't stall. The longer nobody attacks, the bolder the computer gets, and after 200 moves in a row without an attack the game is a draw.
  7. Save Miners for the end. Its Flag starts on its back row 85% of the time and is walled in by Bombs on every side more than half the time, so you need Miners to get in.

What the Stratego computer knows about your pieces

The computer plays by the same information you have. It never looks at your hidden ranks. This is everything it uses:

What it knowsWhat it does with it
Ranks shown in fights, both the attacker's and the defender'sSteps away from your known stronger pieces and goes after known pieces it can beat
Your Scouts that ran more than one squareTreats them as known Scouts
Which of your pieces have movedCrosses them off as possible Bombs and Flag
Where your unmoved pieces standGuesses your Flag is most likely on your back row and very unlikely on your front row, and that Bombs are more likely behind your front row than on it
Which of your pieces it has takenGuesses each unknown piece from the ranks you still have left

A small red square on one of your pieces means the computer has seen its rank. Pieces without the mark are still a guess to it.

It does not read how you play a piece. Charging forward with a Sergeant as if it were your General works on people, but not on this computer. To it, an unknown piece that has moved is just as likely to be any rank you still have, however boldly it moves. Against Hidden Ranks, staying unknown is worth more than bluffing. For bluffing human opponents, see our Stratego strategy guide.

Where the computer hides its Flag and Bombs

The computer builds a new army every game, following a few fixed habits. We had it build 20,000 armies. This is where its Flag and Bombs landed:

Two 4-by-10 grids of the computer's starting area in Hidden Ranks: its Flag starts on the back row about 85% of the time, about 8.5% on each square, and about 1.5% on each square of the row in front, never on the two front rows; Bombs appear on 19 to 26% of back-row squares, about 21% of third-row squares, 15% of second-row squares and never on the front row
Chance of the Flag (top) and of a Bomb (bottom) on each square of the computer's starting area, from 20,000 computer setups. The front row faces you.
  • Flag: on its back row in 85% of setups and on the row in front of it in 15%. Never on its two front rows. No column is favored, so a back corner is no more likely than the middle.
  • Bombs: never on its front row. On average there are 1.5 on its second row, 2.1 on its third row and 2.4 on its back row.
  • Bombs around the Flag: every square next to the Flag is a Bomb in 58% of setups. In only 6% does the Flag have no Bomb beside it at all.
  • Spy: always starts next to its General, and never on its front row.
  • Marshal: always starts on the other half of the board from its General, left or right.
  • Front row: always at least three Scouts, and three to five of them in 85% of setups.
  • Miners: at least two start on its two back rows; on average 3.7 of its five Miners start there.

What this means for you: hit its front row freely, since there is no Bomb to lose a piece to. When its General is revealed, remember that the Spy started right next to it, and that its Marshal started on the other side of the board. In the endgame, look for the Flag among the unmoved pieces on its back row.

Reading the computer's moves

  • A piece that has moved is never a Bomb or the Flag. Keep track of which of its back-row pieces have never moved. Late in the game, those are your Flag suspects.
  • It comes back to guard its Flag. As soon as one of your pieces gets within three squares of its Flag, it starts to favor moves that bring its pieces, apart from its Scouts, back toward the Flag, and the more of your pieces are near, the stronger that pull.
  • Early Scout runs are probes. The computer likes to attack your unknown pieces with Scouts to see what they are, the same way you should.
  • It runs from known strength and chases known weakness. A piece of yours that it knows is weak draws its hunters. If that piece retreats toward one of your hidden officers, the hunter can follow it into a fight it can't win.
  • Quiet games make it bold. After a few dozen moves without a fight, it pushes its pieces forward harder and attacks unknown pieces more readily.
  • Late in the game it hunts for your Flag. When ten or fewer of your pieces are still unknown, every piece except its Spy starts moving toward them. On Hard its Miners start heading for your unmoved pieces earlier, once fourteen or fewer of your pieces are unknown.

Tips for Easy, Standard and Hard

You choose the difficulty before the battle. To see how far apart the three levels are, we let them play each other: 1,000 games for each pairing, taking turns moving first.

MatchWinsLossesDraws
Hard vs Easy9009010
Standard vs Easy84614014
Hard vs Standard49343275

Easy is far weaker than the other two levels. Hard is only a little stronger than Standard, and mostly in one way: it rarely throws its Marshal or General away on a Bomb. In these games Standard lost its Marshal or General to a Bomb about once every two games, and Hard about once every five.

Easy

Easy adds a lot of randomness to its choices and cares little about losing pieces, so it often leaves pieces where you can take them. Play your first games here to learn the board: attack its pieces that have moved with your Captains and Majors and trade freely.

Standard

Standard weighs every attack on the odds, but it has no special caution about pieces that have never moved, so its Marshal and General sometimes run into Bombs. Keep a couple of Bombs on your second and third rows, in the lanes its officers come down, and let them stay still. Give it no cheap targets: once one of your pieces is known, keep it away from its stronger pieces.

Hard

  • Unmoved pieces protect you. Hard avoids hitting your unmoved pieces with its Marshal and General, and is careful with its Colonels and Majors, while you still have Bombs. A front line that never moves keeps its officers off, and it sends Miners instead.
  • Take its Miners. Hard saves its last Miners for your Bombs. Every Miner you take makes a Flag behind Bombs harder for it to reach.
  • Never let your Marshal be seen early. When Hard knows where your Marshal is, its Spy heads straight for it, and a Spy that attacks your Marshal wins.
  • The Spy trap is harder on Hard. Once its own Marshal is known and your Spy is still alive, Hard keeps its Marshal away from your unknown pieces. Pin it in with known pieces first, or trade your Marshal for it.

How to find the computer's Flag

  1. Count what has moved. The computer has 33 pieces that can move. Every piece you have seen move is off the list.
  2. Start with its back row. The Flag is there 85% of the time. Unmoved back-row pieces with unmoved pieces around them are the best suspects.
  3. Push and watch. Bring a piece within three squares of a suspect. If the computer starts pulling pieces back toward that spot, you are close.
  4. Clear the guards, then send a Miner. More often than not, every square next to its Flag is a Bomb, and only a Miner can defuse a Bomb. Bring a Marshal or General in first to clear the defenders, because any officer takes a Miner.
  5. Or take every piece that can move. If the computer has no piece left that can move, you win without finding the Flag. In our computer-vs-computer games about one game in seven ended that way.

The full rules for capturing the Flag and for the no-moves win are on our Stratego rules page.

Mistakes that lose games to the computer

  • Using your Marshal to hit unknown pieces early. It wins most fights but shows its rank, and from then on the computer plays around it.
  • Moving every piece. Each piece you move is crossed off as a possible Flag. The fewer unmoved pieces you have left, the better the computer's guess at where your Flag is.
  • Leaving your Flag alone late in the game. When few of your pieces are still unknown, the computer searches them one by one. Keep a strong piece near your Flag.
  • Hitting its unmoved back-row pieces with officers. Each back-row square holds a Bomb in roughly one setup in four. Use Miners or Scouts there.
  • Moving the same piece back and forth. The two-square rule stops a piece after three moves in a row between the same two squares, for you and for the computer.
  • Waiting for the computer to attack. It will, eventually, but 200 moves in a row without an attack end the game in a draw.

For the setup side, our Stratego setup guide explains the three ready-made setups in Hidden Ranks: Twin corners, Center flag and Unbombed flag.

Beating the Stratego computer FAQ

Can you beat the computer at Stratego?

Yes. Hidden Ranks, the computer opponent on this site, never looks at your hidden pieces and does not plan far ahead, so a careful player can beat it on every level. Start on Easy, then move up to Standard and Hard.

Does the Stratego computer cheat?

No. It only uses what a human opponent could know: ranks shown in fights, Scouts that ran more than one square, which of your pieces have moved and which of your pieces it has taken.

Which difficulty should I start on?

Easy. It plays with a lot of randomness and loses pieces carelessly. In our tests both Standard and Hard beat Easy in more than eight games out of ten.

Is Hard much harder than Standard?

A little. In 1,000 games between them, Hard won 493, Standard 432, and 75 were drawn. Hard's main edge is that it rarely loses its Marshal or General to a Bomb.

Where does the computer put its Flag in Stratego?

In Hidden Ranks, on its back row 85% of the time and on the row in front of it otherwise, never on its two front rows. More than half the time every square next to the Flag is a Bomb.

Can you bluff the computer in Stratego?

Not by how you move. The computer guesses an unknown piece from the ranks you have left, not from how boldly it moves. What works is keeping pieces unknown and leaving some unmoved, because it treats unmoved pieces as possible Bombs.

What happens if neither side attacks?

After 200 moves in a row without an attack, the game ends in a draw. The computer also gets bolder the longer a game stays quiet.

← All Stratego articles