The Tic-Tac-Toe Game is a classic two-player game implemented using modern web technologies. The objective of this project is to create a simple, interactive, and fun game that demonstrates my skills in front-end development. This project also serves as a practice for implementing game logic, managing state, and creating a responsive user interface.
- Two-Player Mode: Play against another person on the same device.
- Interactive UI: Click to place X or O on the board.
- Responsive Design: Optimized for different screen sizes, including mobile devices.
- Winning Detection: Automatically detects and announces the winner or if there's a draw.
- Restart Game: Option to restart the game at any time.
Document.-.Profile.1.-.Microsoft.Edge.2024-05-18.10-54-31.mp4
HTML5: For creating the structure of the game.
CSS: For styling the game and making it responsive.
JavaScript (ES6): For implementing the game logic and interactivity.
To set up and run the Tic-Tac-Toe Game locally, follow these steps:
Clone the repository:
bash
git clone https://github.com/Akanksha038/Tic-Tac-Toe-Game.git
-
Open Visual Studio Code(or your preferred code editor) and run this code to view the game.
-
Click on any cell in the 3x3 grid to make a move. Player X always starts first.
-
Take turns with the other player, clicking on an empty cell to place your mark.
-
The game will automatically detect if a player has won or if there's a draw.
-
Click the "New Game" button to reset the game and play again.
Contributions are welcome! If you have suggestions for improvements or new features, please feel free to open an issue or submit a pull request. Follow these steps to contribute:
1.Fork the repository.
2.Create a new branch: git checkout -b feature-branch-name.
3 .Make your changes and commit them: git commit -m 'Add new feature'.
4.Push to the branch: git push origin feature-branch-name.
5.Open a pull request.