Welcome to the Tic-Tac-Toe project, a classic game brought to life with Python and the Tkinter graphics library! This project offers an interactive and enjoyable gaming experience, featuring both Player vs. Player and Player vs. Computer modes.
- Introduction
- Key Features
- Tech Stack
- How to Play
- Project Structure
- Getting Started
- Contributing
- License
- Acknowledgments
Tic-Tac-Toe is a classic game that pits two players against each other. Each player takes turns marking a square in a 3x3 grid, aiming to get three of their marks in a row—horizontally, vertically, or diagonally—before the opponent does.
This project not only offers the traditional Player vs. Player mode but also introduces a challenging Player vs. Computer mode. The computer opponent utilizes the power of NumPy to make intelligent moves, providing an engaging and dynamic gaming experience.
- Player vs. Player Mode: Challenge a friend for a classic Tic-Tac-Toe showdown.
- Player vs. Computer Mode: Face off against a smart computer opponent with strategic moves.
- Interactive GUI: The game features a sleek and user-friendly graphical user interface created using the Tkinter graphics library.
- Smart Computer Moves: The computer calculates optimal moves using NumPy, adding a layer of strategy to the game.
- Python 🐍
- Tkinter Graphics 🐢
- NumPy (for computer intelligence) 🧮
- Run the Python script (game.py).
- Choose between a custom Player vs. Player game or challenge the computer.
- Enjoy the interactive Tkinter graphics interface.
- Make your moves and experience the thrill of the game!
-
tic-tac-toe game : The main folder containing all the source code and files.
-
game.py : The main Python script containing the game logic and GUI implementation.
-
README.md : The project's documentation, providing an overview, instructions, and acknowledgments.
-
requirements.txt : This file containing all the required libraries for this project
- Clone the repository:
git clone https://github.com/codefever07/tic-tac-toe-game
- install all the required libraries :
pip install -r requirements.txt - Start the game by running following command:
python game.py
Choose the game mode and start playing!
Contributions are welcome! Whether you want to fix bugs, improve the AI, or add new features, feel free to submit a pull request.
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request.
This project is licensed under the MIT License.
Special thanks to the Python community, the creators of the Tkinter graphics library, and the contributors to NumPy for their valuable tools and resources.
Let's connect and build something amazing together! 🚀🐍💻