Tic Tac Toe

Play Tic Tac Toe online for free, no signup required. Enjoy this classic game with a responsive board, automatic win/draw detection, and easy reset option. Challenge a friend or play against the computer!

About

Game Board

3x3 grid with clickable cells for X and O moves

Turn Indicator

Displays current player's turn (X or O)

Win/Draw Detection

Automatically detects wins or draws and displays result

Reset Button

Allows players to start a new game instantly

Result Modal

Pops up to show game outcome (win or draw)

Responsive Design

Playable on both desktop and mobile devices

Reference

Tic Tac Toe, also known as Noughts and Crosses, is a classic paper-and-pencil game for two players. The game originated in ancient Egypt around 1300 BCE. Players take turns marking X or O in a 3x3 grid, aiming to place three of their marks in a horizontal, vertical, or diagonal row. Despite its simple rules, Tic Tac Toe has been the subject of mathematical analysis and is considered a solved game, meaning that with perfect play, the game will always end in a draw.

Calculation

The win condition in Tic Tac Toe is determined by checking eight possible winning combinations: three horizontal rows, three vertical columns, and two diagonals. After each move, the game checks if the current player has completed any of these combinations. A draw is declared when all nine cells are filled without any player achieving a winning combination.

Frequently Asked Questions

Can I play against the computer?
Yes, you can take turns making moves as X or O against the computer's AI player.
What happens if the game is a draw?
If all 9 cells are filled and no player has won, a modal will appear declaring the game as a draw.
Can I play on mobile devices?
Yes, the game is responsive and can be played on mobile devices as well as desktops.
Is there a way to keep score?
No, this version of the game does not keep track of scores across multiple games.