Welcome to the Awesome Tic-Tac-Toe Game! This is a simple and fun Tic-Tac-Toe implementation using HTML, CSS, and JavaScript. Challenge your friends and see if you can emerge victorious!
Tic-Tac-Toe, also known as Noughts and Crosses, is a classic paper-and-pencil game for two players, where one player uses "X" marks and the other "O" marks on a 3x3 grid. The players take turns to place their marks in an attempt to form a horizontal, vertical, or diagonal line of three marks before the opponent does.
This project is a digital version of the game, built using basic web technologies like HTML, CSS, and JavaScript. It offers an interactive and user-friendly interface, allowing players to enjoy the game conveniently in their web browsers.
You can try out the live version of the game here.
- Player vs. Player: Challenge a friend and compete against each other.
- Responsive Design: Play the game on various devices, including desktops, tablets, and smartphones.
- Interactive UI: Enjoy a smooth and visually appealing interface.
- Open the game using the demo link or run it on your local machine after following the installation instructions.
- Choose the Player vs. Player mode to play against a friend.
- The game starts with an empty 3x3 grid. Players take turns to place their marks on any available cell.
- The objective is to form a horizontal, vertical, or diagonal line of three of your marks before the opponent does.
- The game will end when one player achieves a winning combination or if the entire board is filled without a winner, resulting in a draw.
- If you want to play again, simply refresh the page or click the "Restart" button.
To run the game locally on your machine, follow these steps:
- Clone this repository to your local machine using:
git clone https://github.com/Hemel17/tic-tac-toe.git
- Navigate to the project directory:
cd tic-tac-toe
-
Open the
index.html
file in your preferred web browser. -
Enjoy playing Tic-Tac-Toe!
Contributions to this project are welcome! If you find any issues or want to add new features, feel free to open an issue or submit a pull request. Please make sure to follow the existing code style and guidelines.
This project is licensed under the MIT License.
Have fun playing Tic-Tac-Toe! If you encounter any problems or have suggestions for improvements, please don't hesitate to open an issue. Enjoy!