Match
{{ statusLabel }}
Difficulty
{{ difficultyLabel }}
Opponent
{{ opponentLabel }}
Play As
{{ playAs }}
Moves
{{ movesPlayed }}
Streak
{{ streakLabel }}
Clock
{{ matchTimeLabel }}
Win Rate
{{ winRateLabel }}
{{ streakProgressCopy }}
{{ streakFlash }}

Tic Tac Toe

Pick a lane, then practice clean openings against a casual, balanced, or perfect board.

The board evaluation tab exports every open cell as win, draw, or risk, so each round doubles as a practice note.
Controls
Tap
place mark
ArrowsEnter
keyboard board play
PF
pause or fullscreen
URH
undo, restart, hint

Paused

Press P or tap Resume to continue this board.

Match Over

Match Recap

Board resolved. Review the match result, then play another line.

Result {{ gameOverMessage }}
  • Result{{ lastOutcomeLabel }}
  • Moves{{ movesPlayed }}
  • Time{{ matchTimeLabel }}
  • Opening{{ openingLabel }}
  • Streak{{ streakLabel }}
  • Win Rate{{ winRateLabel }}
Field Value Note Copy
{{ row.label }} {{ row.value }} {{ row.note }}
Cell Mark Evaluation Signal Detail Copy
{{ row.cell }} {{ row.mark }} {{ row.evaluation }} {{ row.signal }} {{ row.detail }}
Finish a match to populate the outcome split chart.
Metric Value Detail Copy
{{ row.label }} {{ row.value }} {{ row.detail }}
# Player Cell Elapsed Signal Copy
No moves recorded yet
Start a match to populate the move ledger.
{{ row.move }} {{ row.player }} {{ row.cell }} {{ row.elapsed }} {{ row.signal }}
Finished Result Difficulty Opponent Opening Moves Copy
No completed matches yet
Finish a board to populate the match log.
{{ row.finished }} {{ row.result }} {{ row.difficulty }} {{ row.opponent }} {{ row.opening }} {{ row.moves }}

        
Customize
Advanced
:

Tic tac toe is a small alignment game where two marks compete for the same three-cell line. The grid has only nine spaces, but each move changes the set of possible rows, columns, and diagonals for both players. A square that looks quiet can become decisive when it blocks one line while creating a second threat somewhere else.

Good play is mostly defensive accuracy. The standard three by three game is solved, and accurate play from both sides should end in a draw. Wins usually come from a missed block, an allowed fork, or a move that left the opponent with two separate winning cells.

Tic tac toe board showing a fork threat, a blocking move, and win draw loss scoring

Practice is more useful when the board explains why a move mattered. A win label, draw label, or risk label turns a casual round into a reviewable position. The result still comes from a simple game, but the decision habit carries over: check immediate wins, block immediate losses, and avoid moves that give the opponent two threats at once.

A streak can be satisfying, but it needs context. Beating a casual opponent means something different from drawing against perfect play. Use the same opponent and difficulty when comparing rounds, and treat a draw from a difficult position as a good defensive outcome.

How to Use This Tool:

Choose the match type first, then use the board labels and move history to review the decisions that changed the result.

  1. Set Opponent to Computer for an automatic reply or Second Human for shared-device play.
  2. Pick Casual, Balanced, or Perfect. Start with Balanced for practice, then use Perfect to test whether an opening can survive accurate defense.
  3. Choose Play as if you want to start as X or reply as O. The turn label shows whose move is active.
  4. Place marks by clicking a cell, or move keyboard focus with the arrow keys and press Enter or Space.
  5. Turn on Hints to label open cells as win, draw, or risk. Turn on Threats when you want urgent blocking cells marked with !.
  6. Use Hint or the H key to cycle through equally strong recommended moves. Use Undo when you want to replay a different branch.
  7. After the round, read Overview, Board Evaluation, Moves, and Score Ledger to connect the final result with the move order and locally recorded totals.

Interpreting Results:

Winner: X, Winner: O, and Draw describe the finished board. The more useful review often comes from the empty-cell labels that appeared before the finish. A Win path cell can force a win with accurate follow-up. A Force draw cell prevents defeat without promising a win. A Losing cell lets the other side force the result.

Threat markers are urgent. If the opponent already has two marks in a legal line and the third cell is empty, ignoring that square usually loses immediately unless your own move wins first. Forks are harder because two future winning cells appear at once. A move can be risky even when no single threat marker is visible yet.

How to interpret tic tac toe result labels
Visible label Meaning How to use it
Win path The side to move can force a win from that square. Compare all winning cells before assuming the first hint is the only good move.
Force draw The side to move can avoid losing, but cannot force a win. Accept it when the alternative is a losing fork or missed block.
Losing A careful opponent can force a win after that move. Replay the previous move and look for the first missed block or fork prevention.
! The opponent has an immediate two-in-a-line threat. Block it unless your current move wins the game first.

Win rate and streaks should be compared only under similar settings. Casual can miss blocks, Balanced usually blocks and often follows best moves, and Perfect chooses among best-scoring cells. A draw against Perfect is often the expected result, not a failed attack.

Technical Details:

The complete state of a standard tic tac toe board is finite and small. Each of the nine cells is empty, X, or O. Legal play alternates marks, so the mark counts determine whose turn should be next in a restored position. Terminal boards are decided by eight possible winning lines: three rows, three columns, and two diagonals.

Perfect play can be evaluated by searching every legal continuation until a win or draw appears. Because the board has at most nine moves, the full game tree is small enough to score exactly. The active side wants the highest future score, while the opponent is assumed to choose the reply that drives the score as low as possible.

Rule Core

Tic tac toe legal result rules
Rule Condition Result
Win The same non-empty mark occupies all three cells in any legal line. That mark wins and the line is highlighted.
Draw All nine cells are occupied and no legal line is complete. The board ends as a draw.
Immediate threat One side has two marks in a legal line and the third cell is empty. The empty cell is a required block unless the current move wins first.
Fork A move creates two separate immediate threats for the same side. The opponent may be unable to block both on the next turn.

Formula Core

Move evaluation uses a win-draw-loss score. A terminal board scores 1 for a forced win by the side being analyzed, 0 for a draw, and -1 for a forced loss. Non-terminal positions inherit the best score for the player being analyzed and the worst score when the opponent is to move.

score(s) {-1,0,1} value(s) = max(value(c)) when the analyzed side moves min(value(c)) when the opponent moves

Here s is the current board state and c is any legal child board created by filling one empty cell. A best move is any empty cell whose child board has the highest value. Equal best moves can be cycled through because they lead to the same outcome class under perfect replies.

Difficulty changes how strictly the computer follows that scoring. Perfect chooses among the best-scoring cells. Balanced always takes immediate wins and blocks, then usually follows best-scoring cells while sometimes choosing a softer legal square. Casual takes immediate wins, may block direct threats, and otherwise adds more randomness.

Worked Examples:

Blocking a direct threat. If O already occupies two cells in the top row and the third top-row cell is empty, X must fill that empty cell unless X can win immediately somewhere else. The threat marker points to the cell that prevents the next-move loss.

Reading a draw label. A center move may show Force draw rather than Win path. That can still be the correct move if every corner or edge lets the opponent create a fork. The draw label means accurate play can still save the board.

Testing an opening against perfect play. Start as X on Perfect, play a corner, and review the reply. If the game ends in a draw, check the move list rather than treating the result as a failed opening. In solved tic tac toe, a held draw is the normal result when neither side makes a mistake.

Comparing streaks fairly. A five-win streak on Casual and a run of draws on Perfect measure different things. Keep the same opponent, difficulty, and play-as setting when using the score ledger as a practice record.

FAQ:

Can two people play on the same device?

Yes. Choose Second Human as the opponent. The computer stops replying, and the two players alternate marks on the same board.

Does perfect play always win?

No. Standard tic tac toe should draw when both sides play accurately. Perfect play mainly prevents avoidable losses and converts the opponent's mistakes.

Why does the recommended move change after I press Hint?

Several cells can have the same best score. Hint cycling moves through equivalent recommendations instead of claiming that only one square is valid.

What is saved between visits?

The score ledger keeps totals, wins, losses, draws, current streak, and best streak for the current browser profile. Those practice records are not an account-wide ranking.

Do game results have prize value?

No. Wins, losses, draws, and streaks are practice records only. They should not be treated as wagers, prizes, or official competition results.

Glossary:

Draw
A finished board where all nine cells are filled and neither side has completed a legal line.
Fork
A move that creates two separate winning threats at once.
Legal line
One of the three rows, three columns, or two diagonals that can decide the game.
Minimax
A search method that scores future moves by assuming both sides choose their strongest replies.
Threat cell
An empty cell that would complete the opponent's line on the next move.
Win path
A move that can force a win with accurate follow-up.

References: