Tic Tac Toe Game

This is a Tic Tac Toe game built with HTML, CSS, and JavaScript. It is a simple and fun game where two players take turns marking X and O on a 3x3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

tic-tac-toe

Demo

Check out the live demo of the game here.

Features

  1. Simple and easy to play
  2. Two-player game
  3. Displays the winner of the game
  4. Resets the game after a win or a draw
  5. Installation

Clone the repository

git clone https://github.com/Andrew-Tsegaye/Tic_Tac_Toe_Game_JS.git

Open index.html in your web browser.

How to Play

  1. Player 1 clicks on an empty square on the grid to place their mark (X).
  2. Player 2 clicks on an empty square on the grid to place their mark (O).
  3. Players take turns until one of them wins by placing three of their marks in a horizontal, vertical, or diagonal row, or the game ends in a draw.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are always welcome! Please feel free to open a new issue or submit a pull request.