Skip to the game
Tic Tac Toe

6x6 Tic Tac Toe

Get five in a row on a 36-square board in 6x6 Tic Tac Toe, where the middle four squares of every row decide the game. Face the computer or a friend.

Play 6x6 Tic Tac Toe

XYou
0
Draws
0
OComputer
0

Loading the game…

6×6 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 6x6 Tic Tac Toe

Start in the middle four, answer every open three before it grows, and line up five marks across, down, or diagonally before your opponent does.

  1. Step 01

    Pick who you play

    The 36-square board loads with this page. Set Opponent to Computer and pick a level, or to 2 players for a friend at your side.
  2. Step 02

    Take turns

    X opens, and one of the four center squares is the natural first move. Then each player adds one mark per turn to any empty square.
  3. Step 03

    Get five in a row

    Line up five marks across, down, or diagonally. Each row and column has room for two lines of five, and both run through its middle four squares.

Features

What's different about 6x6 Tic Tac Toe

  • Thirty-two winning lines

    Twelve across, twelve down, and eight diagonal, each five squares long.

  • The middle four are strongest

    Each of the four center squares sits on 7 of the 32 lines. A corner sits on 3.

  • Open lines decide games

    Four in a row with both ends empty can't be stopped, so threats need an answer early.

  • A Hard search that sees most of the board

    Hard looks within two squares of every mark, a window that on 6×6 covers most of the board after the first move.

  • Open-three duels with a friend

    Pass one screen back and forth and find out who lets the first open three slip through.

  • Four 6×6 tallies

    Each computer level and the 2-player mode count their own 6×6 wins, losses, and draws.

Strategy

6x6 Tic Tac Toe strategy: open threes and forcing moves

Five in a row keeps 6×6 fair: with only four, the first player could force a win, and with five it's a proven draw. The board is tight, so a careless defender still loses to open threes and forcing moves.

  • Start in the middle

    The four center squares sit on 7 of the 32 lines. Corners and the squares halfway along each edge sit on only 3.

  • Block in the middle of a row

    Each row and column holds two fives, and both use its middle four squares. A mark there stops both. A mark on an end square stops only one.

  • Stop open threes

    Three in a row with room on both sides can grow into an open four, which wins. Block it as soon as it appears, as in the diagram.

  • Open fours need long lines

    An open four needs six squares in a line, so on 6×6 it fits only in a full row, a full column, or a diagonal running corner to corner.

  • Make moves that force replies

    A line one mark from five must be blocked. Chain those forcing moves to steer your opponent while you set up a second threat.

O to move: only the highlighted squares stop X from making four with both ends open.

About the game

6x6 Tic Tac Toe online: five in a row on 36 squares

The rules, why five in a row, the 32 lines, how Hard searches this board, open threes and fours, and what the page saves.

6x6 Tic Tac Toe asks for five in a row on a 36-square board. That's one short of the board's width, so every row has room for just two fives, and the middle squares decide most games. Play an Easy, Medium, or Hard computer, or pass the device to a friend.

6x6 Tic Tac Toe rules: five in a row

X goes first, and each turn adds one mark to an empty square; nothing is ever moved or removed. Five of your own in a line, across, down, or diagonally, takes the round, and the game strikes a line through them.

A game can run to all 36 squares, but it often ends sooner. Once each of the 32 lines holds at least one X and one O, no five is possible, and the round ends as a draw on the spot, even with empty squares left.

Why 6x6 Tic Tac Toe uses five in a row

The length of the line keeps the game fair. With four in a row, the first player can force a win on a board just six squares wide and five tall, so a 6×6 game of four in a row would be decided before it started. Computer searches have proved five in a row a draw on boards up to 8×8, which covers 6×6 with room to spare.

So a perfect defender can always hold a 6×6 game. In practice, players miss open threes and forcing moves all the time, and those mistakes decide the round.

32 lines and the middle squares

A 6×6 board holds 32 possible lines of five: twelve across, twelve down, and eight diagonal. Each row and column contains two of them, one from the first square to the fifth and one from the second to the sixth. Both share the middle four squares, so a mark there counts toward both, and a single enemy mark there shuts the whole row.

The four center squares sit on seven lines each, more than anywhere else. Next come the four squares one step in from the corners, with six each, because they lie on a long diagonal as well as a row and a column. A corner sits on three, and so do the two squares halfway along each edge. Of the eight diagonal lines, four run along diagonals only five squares long, so one mark anywhere on them closes them for good.

How the computer searches near the marks

Choose Computer under Opponent, then a level. On 36 squares every level plays near the marks already down rather than anywhere at all:

  • Easy picks a random empty square touching a mark, diagonals included, or a center square on an empty board. It never plans, so its lines grow by accident.
  • Medium takes an instant win and blocks any line of five that's one mark short, even one with a gap. Otherwise a coin flip decides between an Easy move and the nearby square worth most right now, for attack and defense, with no look-ahead.
  • Hard searches ahead one move deeper at a time for about 0.3 seconds, over squares within two steps of a mark. After one center mark that window already holds 24 of the 35 empty squares, so it sees most of the board. Below its first move it keeps the 12 most promising replies, and when you're one mark from five it only weighs the blocks.

Moving first, Hard opens on one of the four center squares. Pick O under You play as to face that opening, or X to take the center yourself.

Playing a friend: who spots the open three

Set Opponent to 2 players and the board keeps a Player X and Player O count for 6×6 rounds alone. Between two people, a game here usually turns on the first open three that goes unanswered, so both players should scan the full rows and long diagonals before every move. Only finished rounds reach the count. The 2 player Tic Tac Toe page explains turns, Undo, and ways to share the first move.

Open threes, open fours, and forcing moves

Most 6×6 games turn on three ideas. An open four is four in a row with an empty square at both ends. It threatens five in two places, and your opponent can block only one, so it wins. On 6×6 it only fits on the middle four squares of a full row, a full column, or one of the two long diagonals.

An open three is three in a row with enough room to become an open four. Leave it alone and it wins, so block it straight away, usually right next to the three. A forcing move makes a line one mark from five. Your opponent has to block it, which lets you choose where they play while you build a second threat.

The strategy diagram above shows an open three in action. X holds the second, third, and fourth squares of the third row. If O plays anywhere else, X takes the fifth square and has an open four. Only the three highlighted squares stop it.

Where to play and where to block

  • Open on one of the four center squares. Each sits on seven lines.
  • Build along full rows, full columns, and the long diagonals, where an open four can fit.
  • Block rows and columns on their middle four squares, which shuts both fives at once.
  • Answer every open three before it grows into an open four.
  • Before each move, check for a four you must block or a five you can finish.
  • Practice on Medium, then take on Hard with the first move as X.

The rules for every board cover the basics if you're new to the bigger boards.

Getting around 36 squares by touch and keyboard

Each square is a sixth of the board's width, still roomy for a thumb. If a tap lands on the wrong one, Undo against the computer takes back your mark and its reply together. New round clears the grid; the count stays.

  • Keyboard: after Tab, each arrow press moves one square, and focus stops at the edges. Crossing from one corner to the opposite one takes ten presses, so Home and End, which jump to the start or end of the row, save a few. Enter or Space places your mark.
  • Screen readers: squares read from Row 1, column 1 to Row 6, column 6, each with its mark, and the status line speaks every move and result.

6x6 Tic Tac Toe and the k-in-a-row puzzle

Mathematicians file games like this under m,n,k-games, where k marks in a row win on an m-by-n board. Classic Tic Tac Toe is the 3,3,3 game, this board is the 6,6,5 game, and free-style Gomoku is 15,15,5. For each one, the question is what happens with perfect play.

Some answers took serious computing. In 2018, Wei-Yuan Hsu, Chu-Ling Ko, Chu-Hsuan Hsueh, and I-Chen Wu used computer search to prove five in a row a draw on 7×7 and 8×8, which settles every smaller board as well. On 15×15, Victor Allis and two colleagues showed in 1993 that the first player wins.

What the game saves, and where

Once the page has loaded over your connection, the computer's 6×6 search runs in your browser, and your moves and results aren't sent to a server. This browser's local storage holds your last settings and four 6×6 counts, one per computer level and one for two players; the privacy policy has the details. A game you leave midway is gone, and Reset scores wipes only the count you're looking at. For more room, try 9x9 Tic Tac Toe, or head back to the 3×3 Tic Tac Toe grid.

FAQ

6x6 Tic Tac Toe questions

Quick answers about 6x6 Tic Tac Toe: five in a row, draws, open threes and fours, the computer, and saving.

How do you play 6x6 Tic Tac Toe?

X and O alternate on a 6×6 grid, X first, one mark per turn. Five marks in a row across, down, or diagonally wins, and once no line of five can still be finished, it's a draw.

How many in a row do you need on 6x6?

Five. Each row and column has room for two lines of five, and the board has 32 possible lines in all.

Why not four in a row on a 6x6 board?

With four in a row, the first player can force a win on a board six squares by five, and so on 6×6 too. Five in a row keeps the game fair.

Is 6x6 Tic Tac Toe a draw?

Yes, if both sides play perfectly. Five in a row has been proved a draw on boards up to 8×8. Real games are decided by missed open threes and forcing moves.

What is an open four?

Four in a row with an empty square at both ends. It threatens five in two places, and your opponent can block only one. On 6×6 it only fits in a full row, a full column, or a long diagonal.

What is an open three?

Three in a row with enough room to grow into an open four. If you don't block it right away, your opponent can make the open four on the next move and win.

How strong is the Hard computer on 6x6?

It's strong. It takes any win, blocks any four, and searches the squares near the marks for about 0.3 seconds. It can't check every ending on 36 squares, so a plan that runs deeper than its search can still catch it. Medium is easier to beat.

Can I play 6x6 Tic Tac Toe with a friend?

Yes, on one device. Switch Opponent to 2 players and take turns; the 6×6 results between you are counted apart from every other board. Trade X each round to share the first move. See 2 player Tic Tac Toe.

Where are my 6x6 scores kept?

In this browser's local storage: four 6×6 counts, one per computer level and one for two players. They aren't sent to a server, and Reset scores clears whichever one is showing.