Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.48 KB

README.md

File metadata and controls

53 lines (32 loc) · 1.48 KB

Tic Tac Toe Game

This is a simple implementation of the classic Tic Tac Toe game using Python and the customtkinter library.

Installation

  1. Clone the Repository:

    git clone https://github.com/akashpd390/Tic_Tac_Toe_in_Python_gui.git
    cd Tic_Tac_Toe_in_Python_gui
    
  2. Install Dependencies: Make sure you have Python installed on your system. Install the required libraries using the following command:

    bashCopy code

    pip install customtkinter

Usage

Run the following command to start the Tic Tac Toe game:

bashCopy code

python tic_tac_toe.py

How to Play

  1. The game board is a 3x3 grid.
  2. Players take turns to place their symbol (X or O) in an empty cell.
  3. The game continues until one player wins by forming a horizontal, vertical, or diagonal line, or the board is full, resulting in a draw.

Features

  • Responsive GUI with customizable layout.
  • Winner announcement in a separate pop-up window.
  • Reset button to restart the game.

Contributing

If you'd like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/my-feature.
  3. Commit your changes: git commit -am 'Add new feature'.
  4. Push to the branch: git push origin feature/my-feature.
  5. Submit a pull request.

Disclaimer

This Tic Tac Toe game is a simple project for educational purposes. Feel free to use and modify the code according to your needs.

Happy gaming!