Skip to content

A tic tac toe game with multiple boards and an AI written in python.

License

Notifications You must be signed in to change notification settings

larobitrumpet/Multi_Board_Tic_Tac_Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Multi Board Tic Tac Toe With AI

This is a project that I created for the AP Computer Science Principles test. It is a python console application in which you can play tic tac toe with multiple boards. It can be played with 2 players or with an AI. It isn't so much and "AI" as an algorithm that can win whenever it is mathematically possible. This game uses the Misère rules. This means that both players play X's and the first player to make 3 in a row looses. You can play on any board you like. If 3 in a row is made on a board, it is considered dead and you can not play on it. The player that makes the final 3 in a row looses. The the first board is board '0'. The positions of the board are numbered as follows:

0 1 2
3 4 5
6 7 8

The algorithm that the computer uses to play against the player is based on this paper by Thane E. Plambeck and Greg Whitehead

About

A tic tac toe game with multiple boards and an AI written in python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages