This Tic Tac Toe web application allows users to play the classic game either with a friend or against an AI. The game features a responsive design, interactive gameplay, and a clean user interface.
- Game Modes: Choose between playing with a friend or against an AI.
- Responsive Design: The game board adapts to different screen sizes for a seamless experience.
- Interactive Gameplay: Clickable game boxes that update with each player's move and highlight the winning combination.
- Restart Functionality: Restart the game at any time with a dedicated button.
- Stylish UI: Uses custom fonts and colors to enhance the visual appeal.
- Clone the repository to your local machine:
git clone https://github.com/PRIYAtechky/Tic-Tac-Toe-Web-application cd tic-tac-toe
- Open
index.html
in your preferred browser:- Double-click the
index.html
file in the project folder.
- Double-click the
-
Start the game:
- Open the
index.html
file in your web browser.
- Open the
-
Gameplay instructions:
- Choose your preferred mode: Play with Friend or Play with AI.
- Players take turns clicking on the grid cells to mark them with X or O.
- The game automatically detects winners or declares a draw when the board is full.
-
Reset the game:
- Use the Reset button to clear the board and start a new game.
- HTML: For structuring the web page.
- CSS: For styling and layout.
- JavaScript: For game logic and interactivity.
tic-tac-toe/ │ ├── index.html ├── style.css └── game_logic.js
If you like this project, feel free to ⭐ the repo.
Your support motivates me to build more projects!