Introduction
This project is a classic Tic-Tac-Toe game developed as a simple, interactive front-end application. It is a two-player game built using core web development technologies, showcasing fundamental logic and DOM manipulation.
How to Play
- The game is played on a 3x3 grid.
- Two players take turns marking a space with their symbol (X or O).
- The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game.
- If all nine squares are filled and no player has three marks in a row, the game ends in a draw.
Features
- Player vs. Player gameplay.
- Automatic win, loss, and draw detection.
- A clear visual display of the game board.
- A "Restart Game" button to reset the board.
Technologies Used
- HTML: For the game's structure and layout.
- CSS: For styling the game board and visual design.
- JavaScript: For the game's logic, player turns, and win condition checks.
How to Run Locally
- Clone the repository:
git clone https://github.com/mkyaduvanshi555/Tic-Tac-Toe.git - Navigate to the project folder:
cd Tic-Tac-Toe - Open the file: Simply open
index.htmlin your web browser to start playing.