https://github.com/nekruzash/tictactoeai
Simple tic tac toe game program with a GUI that has 2 different game modes Player vs Player and Player vs AI.
https://github.com/nekruzash/tictactoeai
minimax-algorithm python-3
Last synced: 8 months ago
JSON representation
Simple tic tac toe game program with a GUI that has 2 different game modes Player vs Player and Player vs AI.
- Host: GitHub
- URL: https://github.com/nekruzash/tictactoeai
- Owner: NekruzAsh
- License: mit
- Created: 2023-12-25T03:52:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T19:15:08.000Z (over 2 years ago)
- Last Synced: 2025-10-10T22:16:52.743Z (8 months ago)
- Topics: minimax-algorithm, python-3
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What I learned
* Utilized the Tkinter library in python to come up with a simple GUI for a 2D game.
* implemented a minimax algorithm to make optimal moves for Player vs AI game mode.
* Integrated a 2D list (buttons) to represent the game board and to track the state of each cell.
* Applied AI functionality and game logic for 2 different game modes.
***
# About
* This is a simple TicTacToe game made using Python libraries and includes two different game modes Player Vs. Player and Player Vs. AI.
### Instructions
* Download and run the file using any IDE.
* Run the program in Fullscreen for best experience.
* Make sure to play as 'X' for Player Vs. AI as playing as 'O' is reserved for the AI
* Also, when switching to different game mode make sure to hit new game to refresh the page