Unbeatable Tic-Tac-Toe

I created a simple tic-tac-toe game in Python. The game features a basic artificial intelligence player. This ai makes the best move given a specific board state. It does this by recursively analyzing the win potential of every possible move that can be made, using a minimax algorithm.

View On GitHub


The game is played through the command line. Player makes a move, then the computer responds.

The tic-tac-toe game