Skip to content

It is Basically A Tic-Tac-Toe game using Artificial Intelligence

License

Notifications You must be signed in to change notification settings

KunalSingh5431/TIC-TAC-TOE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

🚀 TIC-TAC-TOE

Welcome to the TIC-TAC-TOE game! This is an implementation of the classic game using Python with an AI algorithm.

Tic-Tac-Toe

🗝️ Features

  • Player vs Player: Play against another human player.
  • Player vs AI: Play against an AI opponent with intelligent decision-making.
  • Command-Line Interface: Simple and interactive text-based interface.

🤖 Tech Stack

  • Language: Python
  • AI Algorithm: Minimax algorithm

▶️ Installation

To run the game locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/KunalSingh5431/TIC-TAC-TOE.git
    cd TIC-TAC-TOE
  2. Install dependencies: Ensure you have Python installed. You can install any necessary dependencies using:

    pip install -r requirements.txt
  3. Run the game:

    python tic_tac_toe.py

🖥️ How to Play

  1. The game is played on a 3x3 grid.
  2. Player 1 is X and Player 2 (or the AI) is O. Players take turns putting their marks in empty squares.
  3. The first player to get 3 of their marks in a row (up, down, across, or diagonally) wins.
  4. If all 9 squares are full and no player has 3 marks in a row, the game is considered a draw.

AI Algorithm

The AI opponent uses the Minimax algorithm to make optimal moves. This ensures a challenging game experience for the player.

☑️ Contributing

Contributions are welcome! If you have any improvements or suggestions, feel free to fork the repository and create a pull request.

🪪 License

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

📍Contact

For any questions or feedback, feel free to reach out:


Enjoy playing TIC-TAC-TOE with AI! 🛩️

About

It is Basically A Tic-Tac-Toe game using Artificial Intelligence

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages