Tic Tac Toe

Play against the computer or take turns with someone nearby.

Your turn.

What this Tic Tac Toe game does

This online Tic Tac Toe game lets you play the classic 3 by 3 board game directly in your browser. You can play against the computer or switch to two-player mode when two people are using the same device. The board works with mouse, touch, and keyboard focus.

The computer mode includes an easy level for relaxed games and a hard level that plays more carefully. Scores are stored in your browser so they can stay on the same device until you reset them.

How to play

Players take turns placing X and O on the board. The first player to place three marks in a row, column, or diagonal wins. If all nine cells are filled and nobody has three in a line, the game is a draw. Use New game to clear the board and keep the score, or Reset score to clear the saved totals.

Useful details

Easy computer mode is meant for quick casual play. Hard mode uses a full board search, so the computer tries to avoid losing. If you want a fair local match, use 2 players and take turns on the same screen.

Privacy

The game runs in your browser. Your board and score are not uploaded by this page. The only saved data is the local score on your device, and you can remove it with Reset score.

FAQs

Can I play Tic Tac Toe on my phone?

Yes. The board and controls are designed for touch screens and small displays.

Can two people play together?

Yes. Choose 2 players and take turns placing X and O on the same device.

Why is hard mode difficult to beat?

Hard mode checks possible future moves and chooses a strong response. A perfect game of Tic Tac Toe often ends in a draw.