Jogo de tabuleiro · Grátis

Jogo da Velha Infinito

Só 3 peças por jogador: coloque, mova e faça três em linha. Empate por repetição, contra a CPU ou com um amigo.

Jogador X
0
Jogador O
0

Free online Infinite Tic-Tac-Toe

Infinite Tic-Tac-Toe keeps the X and O you know but gives each player only three marks. Once they are down, you have to move them, one per turn and to any empty square, until you line up three. Because the board never fills up, there is no draw by a full board: a game ends when someone wins or when the same position appears for the third time, which is a draw. This guide covers the exact rules of this version, the L-shaped trap that decides games, and what a complete analysis reveals about the computer.

History

Lining up three pieces is ancient. The Roman game known as terni lapilli, in which each player has three pebbles that are then shifted around the board, is mentioned by the poet Ovid in the Art of Love, and the same family reappears in the Middle Ages as three men's morris. Paper tic-tac-toe, with nine squares and no movement, reached a landmark in 1952 with OXO, a program by A. S. Douglas for the EDSAC computer at the University of Cambridge, one of the first computer games.

How to play

In the default 2-player mode, X and O alternate on the same device; in vs-CPU mode you play X and the computer plays O. X always moves first, in every game. There are two phases. During placement, the first three moves of each player, you tap an empty square to put a mark down.

In the movement phase each turn takes two taps: first one of your marks, which lights up, then an empty square. It can be any empty square on the board, not just a neighbouring one. Tapping the lit mark again cancels the choice, and tapping a different mark of yours switches the selection.

Rules

Strategies

How a game can end in a draw

With 6 pieces on 9 squares there are always 3 empty squares, so a move always exists and the board never fills up. A complete analysis of the game, covering all 5,390 reachable positions, shows that with perfect play on both sides nobody can force a win: the theoretical result is a draw.

So that perfect play cannot go on forever, this version uses a threefold-repetition rule: if the same arrangement of marks, with the same player to move, occurs for the third time, the game ends in a draw. Positions can only repeat during the movement phase, and the history starts over with every new game and when you switch modes. A move that completes three in a row wins on the spot, repetition or not.

The L-shaped trap: the double threat

In the movement phase everything revolves around one idea. Two of your marks on a line with the third square empty form a threat: your third mark, wherever it is, jumps there and completes the line. Whoever has the move with a threat on the board wins; whoever faces a threat must occupy the empty square with one of their own marks.

The disaster is the double threat. Number the squares 1 to 9, left to right and top to bottom. With marks on 1, 2 and 4, you threaten square 3 (completing 1-2-3 with the mark from 4) and square 7 (completing 1-4-7 with the mark from 2). The defender can plug only one, and the other side wins. The analysis confirms it: with X on 1, 2 and 4 and O on 5, 6 and 8, it is O's turn and O loses in two moves, despite holding the centre.

Centre, blockers and the free piece

A few structural facts help you read any position.

How the computer plays

The computer plays O with a six-ply minimax search: it sees its own move plus five more, and it prefers a quick win to a slow one. That covers every forced win that exists in this game, because the complete analysis shows none lasts longer than three moves by the winner. The upshot is blunt:

The movement phase is merciless

With all three marks of each side on the board and no winner yet, the analysis classified every position that can arise in a game. In about 77% of them the side to move wins by force. In about 15% neither side can force a win: with perfect play it is a draw. In about 8% the side to move is already lost.

In other words, the movement phase is short and tactical: one mistake usually decides the game, which is why placement, when you still choose where each mark is born, matters so much.

Common mistakes

These account for most lost games.

Tips for beginners

Trivia

Mobile version

On a phone, tap an empty square to place a mark. In the movement phase, tap your mark and then the destination square; the marks you can choose and the empty destination squares light up, and the board fits the screen width with no sideways scrolling.

Frequently asked questions

Why can I move my pieces?

This version has a movement phase: after you place your 3 marks, each turn consists of moving one of them to an empty square, in search of three in a row.

Can I move a piece to any empty square?

Yes. The square does not have to be a neighbour: any empty square on the board will do. The only thing you cannot do is pass.

Can the game end in a draw?

Yes, by repetition: if the same arrangement of marks, with the same player to move, occurs for the third time, the game ends in a draw. There is no draw by a full board, since 3 squares are always empty, and a draw does not score on the scoreboard.

Can I beat the computer?

According to a complete analysis of the game, no: no sequence of X moves beats the computer's replies, and with perfect play nobody can force a win. The best result against it is a draw by repetition. To win, play 2-player mode.

What is the best first move?

The centre is the soundest, since it sits on 4 lines. With perfect play, though, every opening leads to the same theoretical result, a draw.

Who starts the game?

X, always. In vs-CPU mode you are X and the computer plays O. In 2-player mode it is fair to take turns playing X.

Is the score saved?

No. The score lasts for the session and resets when you switch modes; nothing is stored on the device.

Do I need to install anything or create an account?

No. Infinite Tic-Tac-Toe runs straight in your browser, free and with no sign-up.

Similar games