Misère Tic-Tac-Toe — Don't Get Three in a Row!
Play reverse tic-tac-toe: the first player to get three in a row LOSES. Play vs a basic AI.
How to play
- Click any empty cell to place your X.
- Goal: do NOT get three X's in a row — that makes you lose!
- The AI plays O. If the AI completes three O's in a row, you win.
- Force the AI into a position where it must complete a line.
- Click 'New Game' to reset at any time.
Reverse tic-tac-toe: the first player to get three in a row loses! Play against a basic AI. Strategy completely flips — avoid making lines while forcing the AI into one.
How it works
Misere tic-tac-toe flips the usual goal on its head: instead of trying to get three in a row, you are trying to avoid it. The player who completes three of their marks in a row — horizontally, vertically, or diagonally — loses the game. Every move must balance offense (forcing your opponent into a losing line) with defense (dodging the trap yourself).
The board is the same 3x3 grid as classic tic-tac-toe, and players alternate turns just as in the standard game. The twist creates a completely different strategic landscape. In the normal game you chase the centre; here the centre can be a trap. Corners and edges take on new tactical weight because they offer multiple ways to force your opponent's hand.
The built-in AI plays a basic heuristic strategy, giving beginners a worthwhile opponent while leaving room for you to discover the optimal approach. Games are fast — usually under ten moves — making this a great mental warm-up or casual diversion.
Use this tool to explore combinatorial game theory in miniature, practise reading positions under reversed incentives, or simply enjoy a familiar grid game with a surprising new twist.
Worked example
Trap the AI in a forced three-in-a-row
- Open the game and choose to play as X (first move).
- Play X in a corner, say top-left.
- The AI responds. Watch which cells it avoids — those are likely near-completions it fears.
- Play your next X so that the AI is forced to choose between two moves that both complete a line for it.
- The AI must take one of those cells and loses by completing three in a row.
You win without placing three in a row yourself, by forcing the AI into the losing position.
Common mistakes to avoid
- Forgetting the goal is reversed and instinctively trying to complete a line — you hand the win straight to your opponent.
- Ignoring the centre: unlike standard tic-tac-toe, the centre is not always safe to take because it gives you access to many lines, which is a liability here.
- Not counting your opponent's near-complete lines; failing to force them to finish a row lets them steer the game at will.
Key terms
- Misere
- A game convention in which the normal winning condition is reversed — the player who would normally win instead loses.
- Zugzwang
- A situation in which any move a player makes worsens their own position; in misere tic-tac-toe you want to engineer this for your opponent.
- Forced move
- A move the opponent must make to avoid an immediate loss, used strategically to steer them toward a losing line.
Frequently asked questions
- How is this different from normal tic-tac-toe?
- The win/lose condition is reversed: the player who completes three in a row is the LOSER, not the winner.
- Is the AI beatable?
- Yes — the AI uses simple heuristics, not a perfect minimax, so a careful human player can outmanoeuvre it.