Can You Beat a Perfect AI?

Fifteen Duel vs. a computer that never makes mistakes

0
Your Wins
0
Draws
0
AI Wins
0
Games

Click a number to claim it. Collect 3 numbers that sum to 15 to win.

Your turn — pick a number

The Secret: It's Tic-Tac-Toe

Fifteen Duel is mathematically identical to tic-tac-toe. The 8 ways to make 15 from three distinct numbers (1–9) correspond exactly to the 8 winning lines in tic-tac-toe when you arrange the numbers in a magic square:

816
357
492

Since tic-tac-toe always ends in a draw with perfect play, Fifteen Duel also always draws when both players play optimally. The AI uses the magic square mapping to play perfect tic-tac-toe strategy.

Your only chance to win is if the AI makes a mistake — but this AI doesn't make mistakes. The best you can achieve is a draw by playing perfectly yourself.

Read the full history of magic squares →

How This Experiment Works

The AI uses minimax: it evaluates every possible future game state and always picks the move that guarantees the best outcome. With 9! = 362,880 possible move sequences, the entire game tree is small enough to search exhaustively.

The AI cannot be beaten. The question is whether you can match it — reaching a draw means you played perfectly. Each game tests whether you can find the optimal response to every situation.

What to Pay Attention To

After a few games, notice patterns:

These patterns are the Sprague-Grundy theorem in action: every position has a determined value, and the AI simply computes it.

Play Fifteen Duel with a normal AI →
Read the full tic-tac-toe proof →
Fifteen Duel strategy guide →
Play all Number Duel modes →