Skip to content

Classic Tic Tac Toe game with an AI Player, implemented with minimax algorithm.

Notifications You must be signed in to change notification settings

venturk/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe-GUI-AI-Game

This is a classic Tic Tac Toe game with an AI Player. The AI player is implemented using the well known minimax algorithm from game theory. It includes a GUI, as well as a text based version.

Image of Tic Tac Toe Game Play

Instructions

Run main.py to play "Tic Tac Toe". If you prefer to check out the CMD version, just run main with the cmd_game_flow() function instead.

Game flow - click the box you want to place your shape in. Currently, the window closes right after the game ends (i.e - after the AI wins or a TIE).

You can play against a friend or against an AI player, just update the game flow parameters accordingly.

Requierments

python 3

pygame

About

Classic Tic Tac Toe game with an AI Player, implemented with minimax algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages