Match status
{{ statusLabel }}
{{ opponentLabel }} · {{ difficultyLabel }} · {{ openingLabel }}
Moves {{ movesPlayed }} Wins {{ scoreboard.wins }} Draws {{ scoreboard.draws }}
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 game with a strict tactical rhythm. A player is not trying to collect good-looking squares; each move changes the set of lines that can still be completed. Because the board has only three rows, three columns, and two diagonals, a careful player can audit every possible win line after each turn.

The usual 3x3 version is also a solved game. If both sides answer correctly from an empty board, neither side should be able to force a win. That draw result is not a flaw in the game. It is the reason tic tac toe is useful for practicing threat recognition, turn order, forks, and the difference between a forced win and a safe defense.

Tic tac toe tactical ideas
Idea What to check Why it matters
Immediate win Your mark already owns two cells in a line and the third is open. Winning now is better than blocking a future threat.
Immediate block The opponent owns two cells in a line and the third is open. Leaving that cell open usually loses on the next turn.
Fork One move creates two separate winning threats. The opponent may be unable to block both threats with one reply.
Forced draw No winning branch survives best replies, but a losing branch can be avoided. A draw can be the correct result when the other side has not made a mistake.
Tic tac toe threat and block diagram A 3 by 3 tic tac toe board showing X and O marks, a blocking cell, and the eight possible winning lines. block Small board, exact threats Three marks in any row, column, or diagonal wins. Two-in-a-line creates an urgent block unless you win now. A fork threatens two lines after one move. Position score win = 1, draw = 0, loss = -1

Good review starts before the final line appears. The useful question is which earlier move made the result unavoidable. A missed block can lose immediately, while a fork mistake can look harmless for one turn and become impossible to repair on the next.

Practice records only mean something when the context is stable. A win streak against a loose opponent is not the same as holding repeated draws against perfect replies. Keep the same side, opening drill, and difficulty when comparing match logs or using old games as training notes.

How to Use This Tool:

Choose the match setup, play the board, then use the result tabs to review why the game resolved as a win, loss, or draw.

  1. Choose Opponent. Computer adds an automatic reply with difficulty control, while Second Human lets two players alternate on the same device.
  2. Set Play as. X opens gives you the first move. O counters starts from the reply side and disables opening drills that seed an X move.
  3. Pick an Opening drill when you are playing as X. Blank board, Start from center, Start from corner, and Start from edge help compare common first-move branches.
  4. Start a Casual, Balanced, or Perfect match. Casual play is loose, Balanced usually follows strong replies with occasional softer choices, and Perfect uses exact search.
  5. Place marks with a click or tap, or use arrow keys plus Enter or Space. If a square does not accept a mark, check whether the board is paused, finished, occupied, or waiting for the computer.
  6. Turn on Hints for cell labels, Threats for urgent ! markers, and Sound if you want move feedback. Use Hint or H to cycle through equal best moves.
  7. After a match, review Match Briefing, Board Evaluation, Outcome Split Chart, Score Ledger, Move Ledger, Match Log, and JSON. The board is ready to archive when the result tabs show the completed board, move rows, and score ledger for the selected mark.

Interpreting Results:

The board status tells you whose turn it is, whether play is paused, or how the match ended. The stronger practice value comes from the cell labels. They describe what can be forced from each open square if both sides answer with their best available replies.

Threat markers should be read before ordinary preference. When the opponent has two marks in a line and the third cell is open, that cell normally decides the next turn. The exception is a move that completes your own line immediately, because the match ends before the opponent can answer.

Tic tac toe output labels and interpretation
Visible label Meaning Practical read
Win path or Win The side to move can force a win from that square. Prefer it unless another winning cell is easier to practice.
Force draw or Draw The move holds the board but does not force a win. Accept it when every attacking move lets the other side win.
Risk or Losing line Best replies can turn the position into a loss. Use Undo and look for the missed block, fork, or safer draw cell.
! or Must block The opponent has a direct two-in-a-line threat. Block it unless your current move completes your own winning line.
Outcome Split Chart Player wins, draws, and losses from the locally stored score ledger. Compare it only across games with the same side, opponent, and difficulty.

A draw on Perfect is often a better practice result than a win on Casual. Perfect replies protect the standard solved draw, while easier difficulties can miss obvious blocks. Use the Move Ledger and Board Evaluation together to find the first move that changed the board's score.

Technical Details:

A 3x3 tic tac toe state has nine cells, each empty or marked X or O. Legal play alternates marks, with X moving first. A finished state appears when a mark occupies all three cells in a legal line, or when all nine cells are filled without a winning line.

The decision search is small enough to evaluate exactly. Every legal empty cell can be tested by filling it, checking for a terminal board, and then repeating the process for the opponent's reply. The value of a move is the final outcome that remains after both sides choose their strongest replies.

Rule Core

Core tic tac toe rule checks
Check Rule Effect
Winning lines Three rows, three columns, and two diagonals are checked. Any filled line ends the game for that mark.
Draw All cells are filled and no winning line exists. The terminal value is neutral.
Threat The opponent has exactly two marks in a legal line and one open cell. The open cell receives urgent threat treatment.
Best move set Every open cell is scored and all cells tied for the top score are kept. Hint cycling can show more than one correct recommendation.
Recent log Completed matches are kept up to 16 recent rows in the current browser profile. The match log stays local and changes when site data is cleared.

Scoring Core

Position scoring uses a win-draw-loss value from the mark being analyzed. A terminal win scores 1, a draw scores 0, and a terminal loss scores -1. Non-terminal positions pass through the best child value when the analyzed mark is choosing and the worst child value when the opponent is choosing.

T(s,p) {-1,0,1} V(s,p) = T(s,p) if s is terminal maxcC(s)V(c,p) if p moves next mincC(s)V(c,p) if the opponent moves next

Here s is the board, p is the mark being evaluated, and C(s) is the set of legal child boards after one empty cell is filled. A recommendation is any move whose child board reaches the highest value available from the current state.

Tic tac toe computer difficulty behavior
Difficulty Move behavior Best use
Casual Takes direct wins, may block, and otherwise allows more random legal choices. Learning basic wins and blocks.
Balanced Usually blocks and follows high-scoring replies, with occasional softer moves. Practice where mistakes matter but not every board is a perfect draw.
Perfect Chooses from the highest-scoring minimax moves. Testing whether an opening or reply survives accurate defense.

The exact search applies to standard 3x3 tic tac toe only. Larger grid games, misere variants, and connect-style games have different state spaces and strategy rules, so their conclusions should not be imported from this board.

Limitations and Privacy Notes:

The match review is a practice aid, not a ranking system. It can classify legal moves for the standard board, but the value of a record depends on opponent type, difficulty, selected mark, opening drill, and whether randomized choices were allowed.

  • Casual and Balanced can choose different replies across repeated games, so the same opening may not produce the same branch every time.
  • The score ledger and recent match log are stored in the current browser profile. Clearing site data, changing browsers, or using another profile changes the available history.
  • Copied rows, downloaded files, chart images, DOCX summaries, CSV files, and JSON exports contain the board or practice records you choose to export.
  • Scores, streaks, and charts have no prize, wager, official competition, or account-wide leaderboard value.

Worked Examples:

Winning before blocking. Suppose X has R2C1 and R2C2, while R2C3 is empty. If O also threatens a different line, X should still play R2C3 because the match ends immediately.

Blocking a direct threat. If O owns R1C1 and R1C2, then R1C3 is urgent unless X has an immediate win. Ignoring that cell lets O complete the top row next turn.

Learning a fork mistake. A corner may look active, but it can still score as Risk if it lets the opponent create two threats. Use Undo, try the labeled Force draw cell, and compare the changed move ledger.

Reading a streak. Five wins on Casual show that you punished loose replies. Switch to Perfect and repeat the same opening drill before treating that habit as reliable defense.

FAQ:

Can two people play on one device?

Yes. Select Second Human. The computer stops replying, and the two players alternate X and O on the same board.

Why does perfect play usually end in a draw?

The standard 3x3 game is drawable when both sides answer correctly. The perfect computer protects that draw and takes a win only after the other side allows one.

Why can several hints be correct?

Several empty cells can share the same top minimax value. Hint cycling moves through those tied recommendations instead of pretending that one square is uniquely best.

What is saved between visits?

The current browser profile keeps the score ledger and up to 16 recent completed matches. It does not create an account-wide leaderboard, and clearing site data removes those local records.

Why did Undo remove the computer's reply too?

Against the computer, Undo can step back your move and the reply so you can choose a different branch from your previous turn. In two-player mode it removes only the latest mark.

Glossary:

Draw
A finished board with all nine cells filled and no completed winning line.
Fork
A move that creates two separate winning threats, leaving the opponent unable to block both with one reply.
Hot-seat play
Two-player play on one device, with players alternating turns on the same board.
Minimax
A game-tree scoring method that assumes both sides choose their strongest available replies.
Threat marker
An urgent open cell where the opponent can complete a winning line on the next move.
Win path
An open cell that can force a win when the side to move follows up accurately.

References:

  • Ticktacktoe, Encyclopaedia Britannica.
  • Tic-Tac-Toe, Wolfram MathWorld, May 8, 2026.
  • Tic-Tac-Toe, CS50's Introduction to Artificial Intelligence with Python, Harvard Extension School, Spring 2020.