Skip to content

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.

License

Notifications You must be signed in to change notification settings

mohsinansari0705/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

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.

Introduction

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.

Features

  • Two-player game with a graphical user interface
  • Simple and intuitive controls
  • Real-time win/draw detection
  • Option to restart the game

Installation

To install and run Tic Tac Toe, follow these steps:

  1. Clone the repository:
    git clone https://github.com/yourusername/tic-tac-toe.git
  2. Navigate to the project directory:
    cd tic-tac-toe
  3. Install the required dependencies:
    pip install -r requirements.txt
  4. Once the game is installed, you can start playing by running the main.py script:
    python main.py

Usage

  • 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.

Contributing

We welcome contributions from the community! If you would like to contribute to Tic Tac Toe, please follow these steps:

  1. Fork the repository.

  2. Create a new branch for your feature or bugfix:

    git checkout -b feature-name
  3. Make your changes and commit them:

    git commit -m "Description of your changes"
  4. Push your changes to your forked repository:

    git push origin feature-name
  5. Open a pull request and describe your changes in detail.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages