This is a simple Tic-Tac-Toe game implemented in Python with Tkinter. The game allows two players to compete against each other or against a basic AI on a 3x3 board.
-
Game Modes:
- Player vs Player Two human players compete against each other.
- Player vs Computer: A human player plays against a basic AI.
- Computer vs Player: The AI plays against a human player.
-
Game difficulty
- Easy
- Medium
- Hard
-
Player symbols
- X vs O
- or O vs X
-
History
-
Scoreboard
- To track the players scores
-
Themes
- Light and dark themes for the interface
-
Reset
- To reset game mode, game difficulty, player symbols and themes to the default. This will clear all the history too.
-
Clone the Repository:
git clone https://github.com/Iranildot/tictactoe/edit/master/tictactoe
-
Install Dependencies:
Make sure you have Python 3.x and Tkinter installed.
-
Run the Game:
cd tictactoe python tictactoe.py -
Choose Game Mode:
Select the game type from the dropdown menu. Configure difficulty and symbol preferences in the settings menu.
-
Play the Game:
Click on empty spaces on the board to make moves. Track the scoreboard and move history during gameplay.
The history shows to the user the follwing past games data:
- which player won the game (player or computer) or show tie in case no player wins the game
- the symbol that the winner was using
- the game mode
- the spent time of that game
- and the game difficulty




