Infinite Tic Tac Toe: play free against the AI or a friend

Infinite Tic Tac Toe is tic tac toe on a 3×3 board where each player keeps only three marks: place a fourth and your oldest one vanishes, so no game is a draw. On this page you can play it online in your browser, free and with no account, against the AI on three levels or with a friend on the same device.

More games

On this page: Rules · Easy, Medium and Hard · Buttons and scores · Strategy · FAQ

Infinite Tic Tac Toe rules: how to play

Infinite Tic Tac Toe is a game for two players, X and O, on the same 3×3 board as classic tic tac toe. The only change is that each player keeps at most three marks on the board. The Board menu in the game above calls this rule Infinity.

  1. Players take turns marking an empty square. X opens the first game.
  2. You keep up to three marks. When you place a fourth, your oldest mark vanishes at once. Only your own marks vanish.
  3. Three marks of yours in a row, across, down or corner to corner, win the game. Only marks still on the board count.
  4. You can't place a mark on a square that is taken, including a square whose mark is about to vanish. A square opens up when its mark has gone.
  5. There are no draws, because the board never fills up. There is no move limit either, so a game lasts until someone wins.
Infinity board with three X marks and three O marks, a faded X in the middle-right square, the top-right O highlighted yellow, and the line Faded X vanishes with this move
After six moves each side holds three marks. X is to move, and its oldest mark, faded in the middle-right square, will vanish.

The game shows which mark is about to go. No mark vanishes before move 7, when X places its fourth mark, so the first faded mark appears after move 6. Only the player whose turn it is sees a faded mark: their own oldest one, which vanishes with the move they are about to make. The line under the turn spells it out, for example "Faded X vanishes with this move". Your opponent's oldest mark shows up faded on their turn. For screen readers, each square is labeled with its row and column, and the marks about to vanish, for both players, add "vanishes on X's next move".

Infinity board with three X marks, one in the bottom-left square, one in the bottom-right square highlighted yellow and one in the center square, and three O marks, a faded one in the top-left square, one in the top-right and one in the middle-left; the line reads Faded O vanishes with this move
X placed a fourth mark in the bottom-right square, and its oldest mark, the one in the middle-right square, vanished. O's top-left mark is now the one about to go.

Infinite Tic Tac Toe is not tic tac toe on an endless board. This page's game has a 3×3 board, and here "infinite" means a game that can in principle go on without end. Some other games use the name for a board with no edges. The closest game here to a much bigger board is Tic Tac Toe 100x100, a 100×100 board where five in a row wins. For the classic game with a draw, see the Tic Tac Toe home page.

Easy, Medium or Hard: how the AI plays

With vs AI picked, you play the computer. You are X unless you pick O next to Play as; that switch waits for the next game, and the screen shows "from next game" until it starts. With 2 Players picked, two people share one phone, tablet or computer. There is no network play, so you can't play someone on another device.

After the first game, the first move changes sides with every new game, including the new game you get when you switch mode or level. This matters here more than on the classic board, because the first player has an edge in Infinite Tic Tac Toe (see strategy below).

LevelHow the AI picks a squareIn our test games
EasyAny empty square, at random.Won 5 of 200 games against Medium.
MediumTakes a square that wins at once, otherwise blocks a square where you could win next, otherwise picks an empty square at random. It does not foresee a win on the square its own vanishing mark leaves open.Won 195 of 200 games against Easy.
HardSearches every line of play 20 moves ahead, counting each player's turn as one move, and takes the best result.Won all 40 games against Medium, all 40 against Easy and all 100 against a player picking random squares.

This page is for anyone who already knows classic tic tac toe. Easy suits learning the vanishing rule, because it ignores it. Hard is the strongest choice on this page.

In our Node.js tests, Hard took at most 501 milliseconds of thinking for one move; in the game, the AI also waits at least 0.35 seconds before it moves. We ran the test games with this page's game code on one computer, and in the Hard against Medium, Easy and random-square tests the first move switched sides each game. The tests did not include human players, so we can't say how Hard compares with an expert. Against Medium, aim your threat at the square its oldest mark is about to leave.

Infinity board where X has three marks in the top row with a line through them, O has marks in the center, middle-right and bottom-middle squares, and the strip reads X wins! with the score X 1 · O 0
X wins with the top row on move 13. X had placed seven marks by then, and only these three were still on the board.

Undo, New game and scores

  • Undo takes back your last move. Against the AI it also removes the AI's reply, so it is your turn again, and a mark that vanished comes back. In 2 Players it takes back one move at a time. Once a game is over, Undo is off.
  • New game clears the board and starts the next game right away.
  • The speaker button turns sound on or off, and the page remembers the setting.
  • On a keyboard, press Tab to reach the board, move between squares with the arrow keys, and press Enter or Space to place a mark.

The score line shows wins for each side, with no Draws box because the game has no draws. It is kept in this browser on this device, with one score for each level and one for 2 Players, kept apart from the Classic board, and it is still there the next time you open the page. The Scores button, with the bar chart icon, opens your scores for every board, one board per tab. There is no account. If your browser blocks site storage, the score is not kept, and a private window forgets it when you close it.

Infinite Tic Tac Toe strategy

The player who moves first wins this game with correct play. The akitenkrad solver in the sources below reports a forced first-player win in 13 moves, 7 by the first player and 6 by the second. Hard on this page, which searches 20 moves ahead, matched it: in 100 games of Hard against Hard the first player won every time, always in 13 moves, and opened on an edge square (top, left, right or bottom) every time. Hard's search rates the corners and the center lower as first moves.

  • Before every move, find your faded mark: that is the square you are about to give up. Track your opponent's oldest mark too, because once they hold three, it vanishes with their next move and its square opens for you.
  • A square that is blocked now can open next turn. In the game pictured above, X took the top-left square on move 9, right after O's mark there vanished on move 8, and used it in the winning row on move 13.
  • Your own vanishing mark can break a line you were building, so count which three marks will be left after your move, not which three are on the board now.

When both sides move at random, moving first helps only a little. In 100,000 games of random moves on this page's rules code, with X moving first every time, X won 52.7% and O won 47.3%. In that sample a game lasted 13.4 moves on average, and the longest lasted 108.

The game at the top of this page starts on Medium. Switch to Easy to practice the vanishing rule or to Hard to test yourself.

Infinite Tic Tac Toe FAQ

How do you play Infinite Tic Tac Toe?

Two players, X and O, take turns marking squares on a 3×3 board, and each player keeps only 3 marks on it. When you place a fourth mark, your oldest mark vanishes. The first player with three marks in a row, across, down or corner to corner, wins.

Is there a draw in Infinite Tic Tac Toe?

No. On this page a game ends only when someone gets three in a row. The board never fills up, because each side holds at most 3 marks, and the score line has no Draws box.

Which mark vanishes when I place my fourth one?

Your own oldest mark, never your opponent's. Your opponent's marks only vanish when your opponent places a fourth mark. On this page the mark that vanishes with the next move is drawn faded, and only for the player whose turn it is.

Can an Infinite Tic Tac Toe game go on forever?

In principle yes, because this version has no move limit and marks keep disappearing. In practice it did not happen in our tests: all 100,000 games of random moves ended, the longest after 108 moves, and all 100 of our Hard against Hard games ended after 13 moves.

Is Infinite Tic Tac Toe solved? Who wins with perfect play?

The player who moves first. A solver written by akitenkrad reports a forced first-player win in exactly 13 moves for this rule, and Hard on this page, which searches 20 moves ahead, matched it: the first player won all 100 of our Hard against Hard games, each in 13 moves. Hard's search rates the four edge squares as the best first moves.

Can you beat Hard at Infinite Tic Tac Toe?

Your best chance is to move first. With correct play the first player wins, and when Hard moved second against Hard it lost all 100 test games. In our tests Hard beat Medium, Easy and random squares in every game, moving first or second, and we have not tested it against human players. The first move switches sides every game, so with the same Play as setting you move first in every second game.

Is Infinite Tic Tac Toe tic tac toe on an endless board?

No. The game on this page is played on a 3×3 board. If you want a much bigger board, play Tic Tac Toe 100x100, a 100×100 board (10,000 squares) where 5 in a row wins, on its own page.

Can I play Infinite Tic Tac Toe against the computer or with a friend?

Yes to both. Pick vs AI and choose Easy, Medium or Hard, or pick 2 Players and pass the phone, tablet or computer between turns. There is no way to play someone on another device from this page.

Does the game save my score?

Yes, in this browser on this device. Infinity has its own score for each level and for 2 Players, kept apart from the Classic board, and the scores stay after you close the page. If your browser blocks site storage, nothing is saved, and a private window forgets the scores when you close it.

Last checked on : we played one full 2 Players game of 13 moves in headless Chrome 157 with a 1280×800 viewport (emulated). The test games (Hard against Hard, Hard against Medium, Hard against Easy, Hard against random squares, Medium against Easy) and the 100,000 random games ran on this page's game code in Node.js 24 on an Intel Xeon E5-2696 v3.

Sources, read on November 16, 2026: akitenkrad, "fifo-tic-tac-toe" (the solver and its rules: the oldest mark vanishes after the new one is placed, and only the marks left on the board count; its documentation states a first-player win in exactly 13 moves with three marks each).

Rate this game

Your rating