Tic-Tac-Toe
Overview
For my StarDance project, I decided to work on a Tic-Tac-Toe game that I originally built as part of CS50’s Introduction to Artificial Intelligence with Python.
Instead of leaving it as the original CS50 project, I wanted to develop it further and make it feel more like a proper game.
I took inspiration from the Google Doodle Tic-Tac-Toe game and attempted to recreate some of its ideas and style. I also used PySimpleGUI to create the graphical interface.
The Game
The player plays against an AI opponent:
- Player = X
- AI = O
The game has three difficulty levels:
- Easy
- Medium
- Impossible
Each level changes how the AI chooses its moves.
The Impossible difficulty uses the Minimax algorithm, which I originally learned about through CS50 AI.
Minimax
Minimax allows the AI to look at possible future moves and choose the move that gives it the best outcome.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.