A simple web-based Tic-Tac-Toe game implemented in HTML, CSS, and JavaScript.
This project is a classic Tic-Tac-Toe game where two players take turns to mark X or 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.
- Responsive design: Play the game on various devices.
- Two-player mode: Enjoy the game with a friend.
- Clear winner indication: The winner is clearly displayed after the game ends.
- Restart functionality: Start a new game with the click of a button.
- Open
index.html
in a web browser. - Enter the names of Player 1 and Player 2.
- Click the "Start" button to begin the game.
- Players take turns marking X or O on the grid.
- The game announces the winner or declares a draw.
- Click the "Restart" button to play again.
- HTML
- CSS
- JavaScript
Clone the repository:
git clone https://github.com/HemanthDas/tic-tac-toe.git