Welcome to the Tic Tac Toe game developed in Python using Pygame! This game offers both single-player and multiplayer experiences with a visually appealing GUI. It features two levels of Bot difficulty: Easy and Hard. While the Easy bot simply tries to win, the Hard bot is designed to block the player and create a more challenging gameplay experience.
- Single Player Mode: Play against the computer with two difficulty levels.
- Multiplayer Mode: Enjoy the classic Tic Tac Toe experience with another player.
- Easy Bot: A basic opponent that makes calculated moves and try to win.
- Hard Bot: An advanced opponent that strategically blocks the player and attempts to win.
- User-Friendly GUI: An intuitive and engaging interface developed using Pygame.
-
Clone the Repository:
git clone https://github.com/Tehseen-Ajmal/Tic-Tac-Toe.git cd Tic-Tac-Toe
-
Install Dependencies:
pip install pygame
-
Run the Game:
python main.py
-
Single Player:
- Select '1-Player' from the main menu.
- Choose the difficulty level: Easy or Hard.
- The game starts with the player making the first move, followed by the bot.
-
Multiplayer:
- Select '2-Player' from the main menu.
- Two players take turns to place their marks (X and O) on the board.
- The first player to get three marks in a row (horizontally, vertically, or diagonally) wins.
Enjoy playing Tic Tac Toe! Happy gaming!