Skip to content

PyGame implementation of Tic-Tac-Toe that uses AI-based algorithms like Minimax, Alpha-Beta Pruning, etc. Games can be AI vs AI, Human vs Human, or AI vs Human.

License

Notifications You must be signed in to change notification settings

JazzKriss21/Tic-Tac-Toe-AI-with-pygame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe-AI-with-pygame

Tic Tac Toe game made using Pygame where the game can be played in 1. (AI vs AI), 2. (AI vs User), or 3. (User vs User) modes.

Overview - Algorithms

  1. Mini-Max
  2. Depth Limited Mini-Max
  3. Alpha-Beta Pruning
  4. Depth Limited Alpha-Beta Pruning
  5. Random Moves
  6. User

Getting Started

  1. Clone this repo
git clone <this_repo_url>
  1. Activate the virtual environment
venv\Scripts\activate.bat
  1. Run the Python script
python TicTacToe.py

Starting A Game

  1. Choose an algorithm for player 'X'

  2. Choose an algorithm for player 'O'

  3. Choose board size.

  4. User your mouse to play for User or watch the AIs battle it out.

License

License: MIT

MIT License Link


About

PyGame implementation of Tic-Tac-Toe that uses AI-based algorithms like Minimax, Alpha-Beta Pruning, etc. Games can be AI vs AI, Human vs Human, or AI vs Human.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages