Welcome to the Tic Tac Toe game! This is a classic Tic Tac Toe game implemented in Python using the pygame library. The game features a graphical user interface and is designed for two players.
Tic Tac Toe is a simple and fun game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game. This project aims to provide a clean and interactive version of the game using Python.
- Two-player game with a graphical user interface
- Simple and intuitive controls
- Real-time win/draw detection
- Option to restart the game
To install and run Tic Tac Toe, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/tic-tac-toe.git
- Navigate to the project directory:
cd tic-tac-toe - Install the required dependencies:
pip install -r requirements.txt
- Once the game is installed, you can start playing by running the
main.pyscript:python main.py
- Follow the on-screen instructions to play the game.
- Players take turns clicking on the grid to place their marks (X or O).
- The game will automatically detect a win or draw and display the result.
We welcome contributions from the community! If you would like to contribute to Tic Tac Toe, please follow these steps:
-
Fork the repository.
-
Create a new branch for your feature or bugfix:
git checkout -b feature-name
-
Make your changes and commit them:
git commit -m "Description of your changes" -
Push your changes to your forked repository:
git push origin feature-name
-
Open a pull request and describe your changes in detail.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any inquiries or feedback, please contact me :)
Thank you for checking out the Tic Tac Toe game! We hope you enjoy playing it as much as we enjoyed creating it.