Skip to content

Nikhil-Gautam-dev/tic-tac-toe-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game with Python and Tkinter Graphics 🐢🎮

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.

Table of Contents

Introduction

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.

Key Features

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

Tech Stack

  • Python 🐍
  • Tkinter Graphics 🐢
  • NumPy (for computer intelligence) 🧮

How to Play

  1. Run the Python script (game.py).
  2. Choose between a custom Player vs. Player game or challenge the computer.
  3. Enjoy the interactive Tkinter graphics interface.
  4. Make your moves and experience the thrill of the game!

Project Structure

  • 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

Getting Started

  1. Clone the repository:
    git clone https://github.com/codefever07/tic-tac-toe-game
  2. install all the required libraries :
    pip install -r requirements.txt
    
  3. Start the game by running following command:
     python game.py

Choose the game mode and start playing!

Contributing

Contributions are welcome! Whether you want to fix bugs, improve the AI, or add new features, feel free to submit a pull request.

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgments

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! 🚀🐍💻

About

This project contains tic-tac-toe game using numpy and turtle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages