A cross-platform Tic Tac Toe game implemented in Python (Tkinter) and Java (Swing). The game features single-player AI modes and a two-player mode for playing with friends.
- Two-Player Mode: Play with a friend on the same device.
- Single-Player AI Modes:
- Easy: AI plays randomly.
- Medium: AI blocks the player or tries to win.
- Hard: AI uses the Minimax algorithm for optimal moves.
- Python: Runs using Tkinter for the GUI.
- Java: Runs using Swing for the GUI.
- Clone the repository.
- Install the required packages:
pip install tkinter
- Run the Python script:
python TicTacToe.py
- Clone the repository.
- Compile the Java code:
javac TicTacToe.java
- Run the Java program:
java TicTacToe
- Choose the difficulty level for the AI: Easy, Medium, or Hard.
- Select whether you want to play with a friend or against the AI.
- Play the game and enjoy!
- If you win, you will be notified with a "You Win!" message.
- If the AI wins, the message will read "You Lose!".
- A draw will be notified as "It's a Draw!".
| Python Version (Tkinter)
| Java Version (Java Swing)