About the Game
Tic Tac Toe, also known as Noughts and Crosses, is one of the world's most recognized paper-and-pencil games. Two players take turns marking spaces on a grid with X or O, and the first to line up their marks wins. This online version runs right in your browser. There is nothing to download and no account to create.
You can play three ways: against the computer, against a friend on the same device, or in Practice mode to sharpen your skills. Three board types are available. Choose the Classic 3x3 grid, the larger 4x4 grid, or Ultimate Tic Tac Toe, a strategic twist played on nine small boards at once.
The game works on desktop computers, tablets, and phones. It supports mouse, touch, and keyboard controls. Your settings, scores, and match history are saved in your browser, so you can pick up where you left off.
Objective
The goal is simple: be the first player to place your marks in an unbroken line.
- Classic 3x3: Get three of your symbols in a row.
- Large 4x4: Get four in a row (or three, if you choose that option in settings).
- Ultimate: Win three small boards in a row on the big board.
If every space is filled and nobody has completed a line, the round ends in a draw.
How to Play
- Choose a mode. Select Player vs Computer, Two Players, or Practice. Use the Change Mode button to switch boards.
- Pick your side. Against the computer, you can play as X or O.
- Set the difficulty. Choose Easy, Medium, Hard, or Unbeatable.
- Make your move. Click or tap an empty space to place your symbol. You can also use the arrow keys to move between cells and press Enter or Space to place a mark.
- Take turns. The status bar and player cards always show whose turn it is.
- Win or draw. When someone wins, an animated line connects the winning cells and the scoreboard updates. Press Rematch to start the next round.
Game Controls
- New Game resets the match score.
- Restart clears the current board.
- Undo Move takes back your last move. Against the computer, it removes both your move and the reply.
- Suggestion button shows a recommended move when hints are turned on.
- Settings lets you change themes, symbol colors, sound, animation, and accessibility options.
- Keyboard shortcuts: Z to undo, R to restart the round, H for a hint, and Esc to pause.
Rules
Classic 3x3 Rules
- The board has nine spaces in a 3x3 grid.
- Players alternate turns, placing one X or O per turn.
- A space that is already taken cannot be used again.
- A player wins by completing a horizontal, vertical, or diagonal line of three. There are eight possible winning lines.
- The game ends immediately when someone wins.
- If all nine spaces are filled with no winner, the game is a draw.
Large 4x4 Rules
- The board has sixteen spaces in a 4x4 grid.
- The default winning line is four in a row, horizontally, vertically, or diagonally.
- You can change the winning condition to three in a row in settings.
- Draws are more common on this board when both players defend well.
Ultimate Tic Tac Toe Rules
Ultimate Tic Tac Toe uses nine small 3x3 boards arranged in a larger 3x3 grid.
- Each small board is a normal game of Tic Tac Toe.
- Winning a small board claims it with a large X or O.
- To win the match, claim three small boards in a row on the big board.
- Where you play decides where your opponent plays. The cell you pick inside a small board sends your opponent to the matching small board on the big grid. For example, if you play in the top-right cell of any small board, your opponent must play in the top-right small board next.
- If the board your opponent is sent to is already won or completely full, they may play in any open small board.
- A small board that fills up with no winner counts for neither player.
- The highlighted board on screen always shows where the next move must be played.
Starting Player Options
You can decide who goes first: X always, O always, alternating each round, or random. The alternating option keeps longer matches fair.
Difficulty Levels
- Easy: Makes frequent mistakes and may miss wins or blocks. Good for beginners and kids.
- Medium: Takes obvious wins and blocks obvious threats, but still slips up sometimes.
- Hard: Plays strategically, looks for forks, and rarely makes errors.
- Unbeatable (3x3): Uses the minimax algorithm to play perfectly. The best you can do against it is a draw.
- Expert (4x4 and Ultimate): Uses a deep search to play very strongly. It is not guaranteed to be perfect on the larger boards.
Tips and Tricks
- Start in the center or a corner. On a 3x3 board, these spaces take part in the most winning lines. The center is part of four lines and each corner is part of three.
- Create a fork. A fork is a move that creates two winning threats at once. Your opponent can only block one, so you win. Look for forks whenever you hold two corners.
- Always check for threats. Before each move, scan for any line where your opponent already has two marks and the third space is empty. Block it unless you can win first.
- Take the opposite corner. If your opponent plays a corner, answer with the center. If they take the center, answer with a corner. Avoid the edges early on.
- Expect a draw against perfect play. Classic Tic Tac Toe is a solved game. With best play from both sides, it always ends in a draw. Beating the Unbeatable AI is not possible, but a draw is a success.
- In Ultimate, think one board ahead. Before you play a cell, check which board it sends your opponent to. Avoid sending them to a board where they can win or set up a strong move.
- In Ultimate, aim for the center board. Winning the middle small board is part of the most winning lines on the big grid.
- Use Practice mode. Turn on hints and unlimited undo, then experiment with different openings without hurting your statistics.
- Level up gradually. Start on Easy, win a few rounds, then move to Medium and Hard before attempting Unbeatable.
Frequently Asked Questions
Is Tic Tac Toe online free to play?
Yes. You can play right in your browser without downloading anything or creating an account.
Can I play against a friend?
Yes. Choose Two Players mode to play on the same device. You can enter custom names for both players and track the match score.
Can I play against the computer?
Yes. Select Player vs Computer and choose from Easy, Medium, Hard, or Unbeatable. You can also play as X or O.
Can the computer really not be beaten?
On the Classic 3x3 board, the Unbeatable level uses the minimax algorithm to play perfectly, so it never loses. You can draw but not win. On the 4x4 and Ultimate boards, the top level is called Expert. It is very strong but not proven perfect.
Who goes first in Tic Tac Toe?
Traditionally X goes first. In this game, you can choose X always, O always, alternating, or random in the settings.
Does the first player have an advantage?
Slightly. The first player has more chances to set up a win, but with correct play from both sides, the game ends in a draw.
What is Ultimate Tic Tac Toe?
Ultimate Tic Tac Toe is an advanced version played on nine small boards. Each move decides which small board your opponent must play in next. To win, you need three small boards in a row. It is a good challenge for players who have mastered the classic game.
Can I undo a move?
Yes, when undo is enabled. In standard modes, you can undo up to three times per round. In Practice mode, you can turn on unlimited undo.
Does the game work on mobile phones and tablets?
Yes. The layout adjusts to your screen size, and the board stays large enough to tap comfortably. You can also play with a keyboard on desktop.
Are my scores and settings saved?
Yes. Your scores, win and loss statistics, streaks, match history, and settings are saved in your browser. You can reset your statistics at any time in the settings.
Can I change how the game looks?
Yes. Choose from eight board themes: Classic Arcade, Neon Glow, Modern Minimal, Pastel, Glass, Midnight, Jewel, and Retro. You can also change the X and O colors, symbol styles, board size, grid thickness, and more. A light and dark toggle is in the top-right corner.
Does the game have sound?
Yes. It has synthesized sound effects and optional background music. Music is off by default. You can adjust the volume or turn off each sound type separately.
Is the game accessible?
Yes. It supports keyboard navigation, a high-contrast mode, larger symbols and buttons, reduced motion, a color-friendly palette, and text-based turn indicators.
How do I win at Tic Tac Toe every time?
Against a good opponent, you cannot win every time because perfect play leads to a draw. You can improve by taking the center or a corner, blocking threats, and building forks. These strategies will beat most casual players.