|
1 | | -# Tic-Tac-Toe-game-with-HTML-CSS-and-JavaScript |
| 1 | +# Tic-Tac-Toe Game |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +## Description |
| 6 | + |
| 7 | +This is a simple Tic-Tac-Toe game implemented using HTML, CSS, and JavaScript. The game features a clean and modern interface, allowing two players to compete against each other on the same device. The game keeps track of wins, losses, and ties for each player. |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | +- Two-player gameplay |
| 12 | +- Score tracking for both players (wins, losses, ties) |
| 13 | +- Reset button to restart the game |
| 14 | +- Modern and responsive design |
| 15 | + |
| 16 | +## Screenshot |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +## Installation |
| 21 | + |
| 22 | +To run this game locally, follow these steps: |
| 23 | + |
| 24 | +1. Clone the repository: |
| 25 | + ```bash |
| 26 | + git clone https://github.com/curiousbud/Tic-Tac-Toe-game-with-HTML-CSS-and-JavaScript.git |
| 27 | + ``` |
| 28 | + |
| 29 | +2. Navigate to the project directory: |
| 30 | + ```bash |
| 31 | + cd Tic-Tac-Toe-game-with-HTML-CSS-and-JavaScript |
| 32 | + ``` |
| 33 | + |
| 34 | +3. Open the `index.html` file in your web browser to start the game. |
| 35 | + |
| 36 | +## Usage |
| 37 | + |
| 38 | +1. Open the `index.html` file in your web browser. |
| 39 | +2. The game will display an empty Tic-Tac-Toe grid. |
| 40 | +3. Player 1 starts with "O" and Player 2 with "X". |
| 41 | +4. Players take turns clicking on the grid to place their marks. |
| 42 | +5. The game will automatically detect and display the winner or if the game ends in a tie. |
| 43 | +6. Use the "Reset" button to start a new game. |
| 44 | + |
| 45 | +## Contributing |
| 46 | + |
| 47 | +Contributions are welcome! If you have any suggestions or improvements, please create a pull request or open an issue. |
| 48 | + |
| 49 | +1. Fork the repository. |
| 50 | +2. Create a new branch (`git checkout -b feature-branch`). |
| 51 | +3. Make your changes. |
| 52 | +4. Commit your changes (`git commit -m 'Add some feature'`). |
| 53 | +5. Push to the branch (`git push origin feature-branch`). |
| 54 | +6. Open a pull request. |
| 55 | + |
| 56 | +## License |
| 57 | + |
| 58 | +This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details. |
| 59 | + |
| 60 | +## Contact |
| 61 | + |
| 62 | +If you have any questions or feedback, feel free to contact me. |
| 63 | + |
| 64 | +- GitHub: [curiousbud](https://github.com/curiousbud) |
| 65 | + |
0 commit comments