A classic Tic-Tac-Toe game built with HTML, CSS, and JavaScript. The game allows both single-player (against AI) and multiplayer modes. It includes a user input form for entering player names, dynamic UI updates, and a minimax algorithm for AI decisions.
- Single-player: Play against the AI using the minimax algorithm for optimal moves.
- Multiplayer: Play with another person on the same device.
- Name Input: Enter custom names for players at the start of the game.
- Restart Game: Restart the game at any point with the click of a button.
- Responsive Design: Works well on both desktop and mobile devices.
- Clone this repository or download the ZIP file.
- Open
index.htmlin your browser to start playing. - Select the game mode (Single-player or Multiplayer).
- Enter player names and start the game.
- Play the game by clicking on the cells to make moves.
- If you're playing against AI, it will make moves after your turn.
- Clone the repository:
git clone https://github.com/your-username/tic-tac-toe.git
- Open the index.html file in your browser to start the game.
- HTML5: Structure of the web page.
- CSS3: Styling of the game layout, including responsive design.
- JavaScript: Logic for handling game interactions, including AI moves using the minimax algorithm.
- Fork the repository.
- Create a new branch (git checkout -b feature/your-feature).
- Commit your changes (git commit -am 'Add new feature').
- Push to the branch (git push origin feature/your-feature).
- Create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.


