A simple app that allows the user to play tic tac toe against the computer where the computer auto-generates possible movies in order to win against the user.
This app was created to learn the basics of AI and how to create a simple AI that can play tic tac toe against the user. I practice using the tkinter library and to practice using functions in Python.
- Programming Language
- Python
- Libraries
- tkinter
Make sure to git clone this repository. After cloning, make sure the latest version of Python and all mentioned packages are installed and the project is ready for use!
The main.py file contains the code for the GUI and the functions that allow the user to play against the computer.
To use the application, run the main.py file. This will open the GUI. The GUI will look like this:
- To use the application, enter the number where you want to place your X in the input box and click the submit button.
- The computer will then place an O in an attempt to win the game.
- The game will continue until either the user or the computer wins or the game ends in a tie.