Skip to content

goksuko/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

This is the classic Tic-Tac-Toe game implemented using the minimax algorithm.

You can choose to play as either the X or O player. If you select O, the computer will calculate the optimal move and start first (it will take a while). If you select X, you will make the first move.

The algorithm assumes that the player will make no mistakes and calculates moves based on that assumption.

Usage

git clone https://github.com/goksuko/tic-tac-toe
cd tic-tac-toe
sudo pip install -r /path/to/requirements.txt
python3 play.py

or

git clone https://github.com/goksuko/tic-tac-toe
cd tic-tac-toe
sudo pip install -r /path/to/requirements.txt
python play.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages