Giter VIP home page Giter VIP logo

jazzkriss21 / tic-tac-toe-ai-with-pygame Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 8.55 MB

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: MIT License

Python 98.88% C 0.72% Objective-C 0.10% HTML 0.02% PowerShell 0.26% Batchfile 0.02%
pygame tictactoe tictactoe-python artifiical-intelligence minimax-algorithm alpha-beta-pruning

tic-tac-toe-ai-with-pygame's Introduction

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


tic-tac-toe-ai-with-pygame's People

Contributors

jazzkriss21 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mme-daoudi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.