
I trained a tic-tac-toe bot on 7k games between real people
Free online tic tac toe. Play vs computer, locally, or with friends.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Free online tic tac toe. Play vs computer, locally, or with friends.
Play free tic tac toe online — no sign-up needed. Challenge the computer, pass the phone with a friend, or invite someone to a private online room and play in real time.
Tic tac toe looks simple. Two players, a 3x3 grid, first to line up three marks wins. Most people learn it before they can read. But the game has been interesting enough to survive for at least 2,000 years, which is longer than most things that seem simple.
The history goes back to ancient Rome, where a nearly identical game called Terni Lapilli was scratched into stone floors across the empire. The modern version with pencil and paper spread through Britain in the 19th century, where it was called noughts and crosses. In 1952, OXO became one of the first computer games ever written, a tic tac toe program that ran on a vacuum tube machine at Cambridge and never lost.
This version has four difficulty settings when playing against the computer: Easy (random moves), Average (plays like a real tictoe.org player, built from data across thousands of games on this site), Medium, and Hard (minimax, never loses). There is also pass and play for two people on the same device, and online multiplayer where you invite a friend with a room code or get matched with a random opponent.
Yes. Mathematicians proved it decades ago. With perfect play from both sides the game always ends in a draw. Every position has been analysed. There is no sequence of moves that beats a perfect opponent.
In practice this rarely comes up, because most people do not play perfectly. Beginners miss forks, skip obvious blocks, and hand the game away without noticing. The Hard mode AI on this site does play perfectly using the minimax algorithm, which means the best outcome you can get against it is a draw. If you want to understand why, the strategy guide walks through the key positions.
The centre is the single most valuable square. It appears in four winning lines: two diagonals, one row, one column. Every other square appears in two or three. Take the centre on your first move when you can.
After the centre, corners beat edges. A corner appears in three winning lines; an edge square only appears in two. Corners also set up forks, which are positions where you have two different ways to win at once. Your opponent can only block one of them.
The real point of tic tac toe strategy is not memorising moves. It is learning to see two moves ahead. Once you can do that consistently, the game becomes much harder to lose. Read the full strategy guide →
No. With perfect play from both sides the game always ends in a draw. The Hard mode AI plays optimally using minimax, so the best you can do against it is force a tie. Against a human who makes mistakes, winning is possible. Learn the key moves that guarantee a draw → — or see how 727 real players fared against Hard mode, and what most of them got wrong.
The centre. It appears in more winning lines than any other square, and taking it limits your opponent's options immediately. If the centre is taken, a corner is the next best choice. Edges are the weakest opening move.
X goes first by convention. On TicToe.org the starting player alternates each round so both sides get an equal first-move advantage over a session. Curious about where the name comes from? See the history of tic tac toe.
Pick Online then Invite a Friend. Share the room code or link that appears and your friend joins automatically. No account needed on either side.
Easy plays random legal moves, so you can win by paying attention to the board. Average plays like a typical tictoe.org player, sampled from real game data, so it makes human mistakes. Hard runs the full minimax algorithm and never loses. Once you can beat Easy without thinking, Average is the next step before Hard.
Yes, completely free. TicToe.org needs no account, no download, and no payment. The Hard mode AI, online multiplayer, and every other game on the site work the same way, right in your browser on any device. 5 reasons tic tac toe is good for kids →
The Online mode connects two players in real time from anywhere — no accounts, no downloads. One player creates a private room and shares the link; the other clicks it and the match starts instantly.
Create a room — pick Online → Invite a Friend above. A private 6-character room code is generated.
Share the link — copy the invite link and send it via WhatsApp, iMessage, Discord, email — anywhere your friend is.
Play instantly — the match starts the moment they join. Real-time moves, no page refreshes.
Private by default. Share the link with one person and only they can join.
No friend free? Pick Random Opponent and we'll match you with someone playing right now.
Moves go over a WebSocket connection — no polling, no page refreshes, no waiting.
Both players hit Rematch and a new game starts with X and O swapped.
Phone, tablet, laptop — anywhere with a browser.
No sign-up, no email, no profile. Open the page and play.
The invite link is tied to your room and stays valid while you're on the waiting screen. If you close the tab the room is released.
Yes. Pick Random Opponent and we'll match you with another player looking for a game right now.
No app needed — TicToe.org is fully responsive and works in any mobile browser. Save it to your home screen for one-tap access.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。