Play tic-tac-toe online for free
Tic-tac-toe, also known as noughts and crosses, is the quickest strategy game there is: two players take turns putting X and O into a grid of 3 × 3 cells. The first to line up three of their own – horizontally, vertically or diagonally – wins.
On PanicLines you play for free in your browser on phone, tablet and computer, with no download and no sign-up. Take on the AI at three levels or play with a friend on one device. If 3 × 3 ends in a draw too often for you, pick the large board with 5 × 5 cells and four in a row.
Rules
- Take turns putting your mark in an empty cell: one of you plays X, the other O.
- The first to get three of their own marks in a row wins: horizontally, vertically or diagonally. A line is struck through the winning row.
- If all nine cells are full and nobody has a row, the game is a draw.
- On the large board with 5 × 5 cells you need four in a row.
- Going first is an advantage, so the starting player alternates from game to game. Giving up counts as a loss.
Modes and AI levels
- Against the AI at three levels: Easy makes clear mistakes, Medium takes every win and blocks every direct threat but falls for forks, Hard plays perfectly on the classic board and never loses.
- Hard likes to set traps and varies between equally good moves, so no two games are alike. On the large board Hard looks seven moves ahead.
- Against the AI the first move alternates by default; in the settings you can choose “Always me” or “Always the AI”.
- Two players, one device: take turns tapping, the starting player switches, and your run of wins and draws is counted.
Controls
- Tap or click an empty cell. With a mouse, a preview shows where your mark will go.
- To avoid mistaps there is a confirm mode (settings): the first tap shows the mark, the second places it.
- Keyboard: on the classic board 1 to 9 place a mark like on a numeric keypad (7 top left, 3 bottom right). The arrow keys pick a cell, Enter or Space places.
- X and O also have their own colours. There are two colour schemes (teal/red and yellow/blue), and “Reduce motion” turns off the drawing animation.
Tips and strategy
- Centre and corners: four lines run through the centre, three through each corner and only two through an edge cell. Going first, start in a corner or the centre.
- The fork: set up two threats at once. Your opponent can only block one of them – that is how you beat Medium.
- Against a corner: if your opponent opens in a corner, take the centre right away. Any other cell can already lose.
- Opposite corners: if your opponent holds two opposite corners and you have the centre, play an edge, not a corner – otherwise a fork is coming.
- Large board: an open three with free cells at both ends can hardly be stopped. Block twos early, before they become an open three.
Frequently asked questions
- Is Tic-Tac-Toe free?
- Yes. You play right in your browser with no sign-up and no download, and there is nothing to buy.
- Can you beat the AI on Hard?
- Not on the classic 3 × 3 board: with perfect play tic-tac-toe always ends in a draw, and Hard plays perfectly. A draw there is already a success. On the large 5 × 5 board Hard only looks a few moves ahead – a win is possible.
- Can two players play tic-tac-toe on one phone?
- Yes. In “Two players, one device” mode you take turns tapping on the same phone or tablet. The game runs in the browser on phones, tablets and computers.
- Is my game saved?
- Yes. A game in progress survives reloading the page. Without an account it stays in this browser; with a PanicLines account it is kept in your account along with your run, so you can carry on on any device.
Similar games
All games · Board and card games · Deutsche Version · Imprint · Privacy