12-32-59.mp4
- Welcome to the Tic-Tac-Toe game! This is a simple web-based implementation of the classic game, where two players take turns marking their symbols (X and O) on a 3x3 grid. The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
- Two-Player Gameplay: Players can take turns marking their symbols (X and O).
- Win/Draw Detection: The game checks for a winner or a draw after each move.
- Restart Button: Easily restart the game without refreshing the page.
- Responsive Design: The game is optimized for both desktop and mobile devices.
- User-Friendly Interface: Intuitive layout with clear visual cues for interaction.
- Game Status Messages: Displays messages indicating the current player, wins, and draws.
- Visual Effects: Hover effects on cells for better interactivity.
- Dynamic Board Creation: The game board is dynamically generated using JavaScript.
- HTML
- CSS
- JavaScript
- Clone this repository to your local machine:
git clone https://github.com/yourusername/tic-tac-toe.git
- Navigate to the project directory:
cd tic-tac-toe
- Open
index.html
in your web browser.
- The game is played on a 3x3 grid.
- Players take turns placing their symbols (X or O) in empty cells.
- The first player to align three of their symbols horizontally, vertically, or diagonally wins the game.
- If all cells are filled without a winner, the game ends in a draw.
-
Contributions are welcome! If you have suggestions for improvements or features, feel free to fork the repository and submit a pull request.
-
Feel free to add or modify any sections as needed based on your specific project details.
This README now includes additional features and provides a more comprehensive overview of your project!
- Background Image: Image by Stable Diffusion (Used in the game background).