This is a simple yet engaging Tic-Tac-Toe game built using HTML, CSS, and JavaScript ๐ฎ. It allows two players to compete against each other in a classic 3x3 grid. The game offers a user-friendly interface with smooth interactions and instant feedback on moves โฑ๏ธ.
- Two-Player Mode โ Players take turns marking 'X' โ and 'O' โญ on the grid.
- Win Detection โ Automatically checks for winning conditions ๐ and announces the winner ๐.
- Draw Detection โ If all boxes are filled with no winner, the game declares a tie ๐ค.
- Restart Button โ Allows players to reset the board ๐ and play again.
- Responsive Design โ Works seamlessly across different screen sizes ๐ฑ๐ป.
Check out the live demo of the game here: Tic-Tac-Toe Game Demo ๐
To run the Tic-Tac-Toe game on your local machine, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/your-username/tic-tac-toe.git
-
Navigate to the project directory:
cd tic-tac-toe -
Open the
index.htmlfile in your browser to play the game.