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.