Skip to the game
Tic Tac Toe

9x9 Tic Tac Toe

Build five in a row anywhere on one big 81-square grid in 9x9 Tic Tac Toe, a close cousin of Gomoku with no opening rules. Take on the computer or a friend.

Play 9x9 Tic Tac Toe

XYou
0
Draws
0
OComputer
0

Loading the game…

9×9 board · get 5 in a row to win

Keyboard: arrow keys move between squares, Home and End jump to the ends of a row, and Enter places a mark.

Game settings
Changing a setting starts a new round.
Board
Opponent
Difficulty
You play as

How it works

How to play 9x9 Tic Tac Toe

Open near the center, keep your marks close together, and block every open three until one of your fours can't be stopped.

  1. Step 01

    Set up the big board

    The 81-square grid is ready when the page opens. Choose a computer level, or 2 players for a long game with someone next to you.
  2. Step 02

    Take turns

    X starts, and the center is the strongest first square. After that, any empty square anywhere on the grid is fair game.
  3. Step 03

    Get five in a row

    Five of your marks in a straight line wins, in any direction and anywhere on the grid. A run of six or more counts too.

Features

What's different about 9x9 Tic Tac Toe

  • 140 winning lines

    Forty-five across, forty-five down, and fifty diagonal, each five squares long.

  • The center rules

    The center square sits on 20 of the 140 lines. A corner sits on just 3.

  • Gomoku-style tactics

    Open threes, open fours, and four-three forks work here just as they do in Gomoku.

  • A Hard level that watches the action

    On 81 squares Hard only weighs squares within two steps of a mark, and it always opens in the center.

  • Long games with a friend

    Two players on one screen can build in several corners at once before anyone finds five.

  • Keyboard and screen reader support

    Arrow keys move around the 81 squares, Home and End jump along a row, and every move is announced.

Strategy

9x9 Tic Tac Toe strategy: open fours and four-three forks

With five in a row on 81 squares, 9×9 plays much like Gomoku. These patterns come up in almost every game, and keeping the initiative matters as much as any single move.

  • Play close together

    Marks near each other share many lines. The center sits on 20 lines and a corner on 3, so moves on the edge help very little early on.

  • Answer open threes right away

    Three in a row with room on both sides threatens an open four, which can't be stopped. Block one of the squares right next to it, as in the diagram.

  • Watch for broken threes

    Two marks, a gap, and a third mark, with space on both sides, are just as dangerous as three in a row: filling the gap makes an open four.

  • Build a four-three

    A move that makes a four and an open three at once is a classic winning fork. Your opponent must block the four, and the three becomes an open four.

  • Keep the initiative

    Each forcing move gives your opponent no time to attack. When you run out of threats, use a quiet move to block their best line.

O to move: block one of the highlighted ends, or X makes an open four.

About the game

9x9 Tic Tac Toe online: one 81-square board, five to win

The rules, how it differs from Ultimate Tic Tac Toe, the 140 lines, how the computer searches 81 squares, Gomoku patterns, and what is saved.

9x9 Tic Tac Toe puts X and O on one big 81-square board and asks for five in a row. With that much room, threats can grow anywhere, and the game plays much like a small game of Gomoku. You can face the computer at three levels or a friend on the same device.

9x9 Tic Tac Toe rules: any square, five to win

X opens, then each player in turn claims one empty square, anywhere on the 9×9 grid, and a mark stays put once it's down. Five of your marks in an unbroken line across, down, or diagonally wins, and the game draws a line through them. Six or more in a row counts as well, because any run that long contains a five.

There are no opening rules or banned moves like the ones some Gomoku tournaments use. The round is a draw if the board fills up, or earlier, the moment every line of five holds both marks. On a board this big, that takes a long and careful game.

9x9 Tic Tac Toe vs Ultimate Tic Tac Toe

Both games use 81 squares, which is why the names get mixed up. This 9x9 Tic Tac Toe is one big grid: you can play any empty square, and you win with five in a row. Ultimate Tic Tac Toe is nine small 3×3 boards arranged in a 3×3 grid. You win a small board with three in a row, the square you play decides which small board your opponent must use next, and three won boards in a line win the game.

140 lines and why the center matters

A 9×9 board holds 140 possible lines of five: 45 across, 45 down, and 50 diagonal. Each row and column has room for five of them, and all five pass through the row's middle square, so one mark there blocks every five in that row. The center square sits on 20 lines, the most on the board, the four squares beside it on 17, and a corner on just 3. Marks placed close together near the middle support each other, while a move on the edge early in the game does very little.

How the computer searches a narrow window

With Computer as the opponent, no level scans all 81 squares. Each one plays near the marks already down:

  • Easy places its mark on a random empty square touching one already on the board, or in the center if the board is empty. It drifts wherever the marks lead.
  • Medium wins when it can and blocks any line one mark from five, gaps included. Otherwise a coin flip picks between an Easy move and the square with the best immediate gain, with no look-ahead.
  • Hard spends about 0.3 seconds deepening its search a move at a time, but only over squares no more than two steps from a mark. After a center opening that's 24 of the 80 empty squares, and below its first move it keeps only the 10 most promising replies, fewer than on 4×4 or 6×6. When you threaten five, it weighs only the blocks.

Moving first, Hard always takes the center. Because its window is narrow and it can't see every ending on 81 squares, a plan that only pays off beyond its horizon can still catch it.

A longer match with a friend

Pick 2 players and the scoreboard starts a Player X and Player O tally kept for 9×9 games alone. With five in a row on 81 squares, both of you have room to build in several places at once, so a round between friends can run far longer than a 3×3 game and fill a whole break. For passing the device, Undo, and sharing the first move, read 2 player Tic Tac Toe.

Open threes, open fours, and four-three forks

The patterns are the ones Gomoku players learn first. An open four has an empty square at both ends, so it threatens five in two places and can't be stopped. An open three has room to become an open four, so it must be answered at once, usually by blocking right next to it. A broken three, two marks and a gap and a third mark with space around them, is just as dangerous, because filling the gap makes an open four.

The classic winning shot is the four-three: one move that makes a four and an open three at the same time. Your opponent has to block the four, and the three then becomes an open four. Two open threes at once can work the same way. Each of these only wins if your opponent has no four of their own to play first.

Is 9x9 Tic Tac Toe solved?

Not as far as published results go. Five in a row is a proven draw on every board up to 8×8, settled by computer search in 2018, and in 1993 Victor Allis and two colleagues showed that on 15×15, with no opening rules, the first player wins. The 9×9 board sits between those two results, and nobody has published its perfect-play answer. One thing is proven for every board like this: O can't have a winning strategy, because an extra mark never hurts the player who has it.

How this board relates to Gomoku

Five in a row is the goal of Gomoku, a game traditionally played with Go stones on a Go board, today usually 15×15. Its Japanese name, gomokunarabe, means roughly five in a line. Tournament versions add limits for the first player to offset the first-move advantage, such as the Renju rule that bans some double threats. This board uses the free-style rule with none of those limits. For the full-size game, with black and white stones on 225 points, play Gomoku.

A routine for every move

  • Start near the center and keep your marks within a square or two of each other.
  • Before every move, look for a five you can finish or a four you must block.
  • Then check for open threes and broken threes, yours and your opponent's.
  • Block an open three on one of the squares right next to it.
  • Look for a move that makes a four and an open three at once.
  • When you have no threats left, play a quiet move that spoils your opponent's best line.

Playing 81 small squares on a phone or keyboard

The board never grows wider than its column, so each of the 81 squares is small, and smaller still on a narrow phone. On a computer, hovering over an empty square or reaching it with the keyboard shows a faint preview of your mark. If a tap still goes astray, Undo in a computer game removes your last mark along with the reply. New round starts over with the count intact.

  • Keyboard: Tab onto the board, then use the arrow keys. Focus stops at the edges, and a trip from corner to opposite corner is 16 presses, so learn Home and End, which jump to the first or last square of the row. Enter or Space plays the square.
  • Screen readers: the board is announced as 9 by 9, every square by row, column, and mark, and moves and results are read out from the status line.

What this browser keeps between games

Loading the page takes a connection, but every computer move on the 81 squares is worked out in your browser, and your moves and scores aren't sent to a server. Your last settings and four 9×9 counts, Easy, Medium, Hard, and 2 players, live in this browser's local storage, which the privacy policy spells out. An unfinished round is lost if you leave, and Reset scores clears just the count on screen. For a quicker game, classic Tic Tac Toe needs only nine squares.

FAQ

9x9 Tic Tac Toe questions

Quick answers about 9x9 Tic Tac Toe: five in a row, Ultimate Tic Tac Toe and Gomoku, the computer, phones, and saving.

How do you play 9x9 Tic Tac Toe?

Players alternate marks on one 9×9 grid, X first, and any empty square can be played. Five in an unbroken line, across, down, or diagonally, wins the round.

How many in a row do you need on 9x9?

Five, across, down, or diagonally. Six or more in a row also wins. The board has 140 possible lines of five.

Is 9x9 Tic Tac Toe the same as Ultimate Tic Tac Toe?

No. This is one big 9×9 grid with five in a row to win. Ultimate Tic Tac Toe is nine 3×3 boards, where each move sends your opponent to a small board and three won boards in a line win.

Is 9x9 Tic Tac Toe the same as Gomoku?

It has the same goal, five in a row, with free-style rules and no opening restrictions. Gomoku is usually played on a 15×15 board, and this site has a Gomoku game too.

Is 9x9 Tic Tac Toe solved?

Not in any published result. Five in a row is a proven draw on boards up to 8×8 and a first-player win on 15×15, and 9×9 sits in between.

How strong is the Hard computer on 9x9?

It grabs any win, answers any four, and spends about 0.3 seconds searching the squares near the marks already down. It can't see every ending on 81 squares, so a deep plan can still beat it.

Does 9x9 Tic Tac Toe work on a phone?

Yes. The board shrinks to fit your screen, so the squares are small on a narrow phone. Undo takes back a mistaken tap while the round is in progress.

Can I play 9x9 Tic Tac Toe with a friend?

Yes, side by side on one device. Choose 2 players under Opponent, and your 9×9 results go on a scoreboard of their own. Swap who plays X between rounds. See 2 player Tic Tac Toe.

If I leave in the middle of a 9x9 game, is it still there later?

No. The round in progress isn't saved. This browser's local storage keeps your settings and four 9×9 counts, Easy, Medium, Hard, and 2 players, but a count only changes when a round is won or drawn.