Tic Tac Toe

0
0
Player X's turn

About This Game

This is a simple, browser-based Tic Tac Toe game built entirely with HTML, CSS, and JavaScript — no external libraries or dependencies required. Just open the file in any modern web browser and start playing!

How to Play

Tic Tac Toe is a two-player game where players take turns marking spaces on a 3×3 grid.

  1. Player X always goes first. Click on any empty cell to place your X.
  2. Players alternate turns. After X plays, it's O's turn, and so on.
  3. Try to get three in a row. The first player to align three of their marks horizontally, vertically, or diagonally wins!
  4. Watch for a draw. If all nine cells are filled and no one has three in a row, the game ends in a tie.
  5. Play again! Click the "New Game" button to reset the board and start a fresh round. Your scores are preserved until you refresh the page.

Rules

Winning Combinations

There are 8 possible ways to win:

History of Tic Tac Toe

Tic Tac Toe is one of the oldest and most recognized games in human history. Its origins can be traced back thousands of years:

Strategy Tips

Technical Details

This implementation uses:

The entire game is contained in a single HTML file, making it easy to share, host, or run offline. Total file size is under 10KB!