This is a Python implementation of the popular game of Tic-Tac-Toe with the ability to play against AI players that use different strategies to make their moves. The game uses a command line interface to display the board and receive input from the player.
Python 3 (and above)
git clone https://github.com/Duks31/tictactoe-ai.git
cd tictactoe-ai
To play the game against an AI player, run the game.py
script with Python:
python game.py
This will start a game with the AI player using the minimax algorithm and a human player. Follow the instructions on the command line to make your moves.
-
This project was inspired by the freeCodeCamptutorial on building a Tic-Tac-Toe game with Python.
-
The game.py file uses code from the player.py file, which was also part of the tutorial.