Skip to content

An unbeatable GUI tic-tac-toe game using minimax algorithm with alpha-beta pruning and pygame module in python.

Notifications You must be signed in to change notification settings

hyperloop11/Unbeatable-TIC-TAC-TOE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unbeatable TIC-TAC-TOE

This is a GUI based TIC-TAC-Toe game, where player plays against an unbeatable AI. The computer uses the minimax algorithm, with alpha-beta pruning to compute the best possible move. Tic-tac-toe is a small game(255168 total possible games)and the computer can go through all the possible moves and compute the best winning strategy using the normal minimax algorithm, but alpha-beta pruning is a massive optimization which makes the computer check furthur cases only when a better move isin't already available. It drastically improves performance of the game.

INSTRUCTIONS

Install pygame by typing the following command in the terminal:

pip intall pygame

About

An unbeatable GUI tic-tac-toe game using minimax algorithm with alpha-beta pruning and pygame module in python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages