Tic-Tac-Toe Game

A simple web-based Tic-Tac-Toe game implemented in JavaScript.

Description

This project implements a classic Tic-Tac-Toe game where two players take turns marking spaces in a 3x3 grid to achieve three marks in a row, column, or diagonal. The game provides feedback on the current player's turn, announces the winner when a player achieves a winning condition, and declares a draw when no more moves are possible.

How to Play

  1. Click on a cell: To place your mark (either "X" or "O").
  2. Winning Conditions: Achieve three of your marks in a row, column, or diagonal.
  3. Game Status: The status display shows whose turn it is ("X" or "O"), announces the winner, or declares a draw.
  4. Restart Game: Click the "Restart" button to reset the game and start over.

Live Demo

You can try out the live version of this Tic-Tac-Toe game here.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Credits

This game was created by David Kawadkar.