Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sanjay2902/tic-tac-toe-pygame

The Tic Tac Toe Game is a modern implementation of the classic grid-based strategy game using Python's Pygame library.
https://github.com/sanjay2902/tic-tac-toe-pygame

development game-development games github programming pygame python python3 pythongame tic-tac-toe

Last synced: about 1 month ago
JSON representation

The Tic Tac Toe Game is a modern implementation of the classic grid-based strategy game using Python's Pygame library.

Awesome Lists containing this project

README

        

# Tic Tac Toe Game 🎮

A modern and interactive Tic Tac Toe game built using **Pygame**, featuring two modes:
- **Human vs Human**
- **Human vs Computer (AI)**

## Features
- **Two Game Modes**: Play with a friend or against the computer.
- **Restart and Menu Options**: Restart the game or return to the main menu after each game.
- **Clean Design**: A dark-themed UI with clear animations.

---

## Installation and Usage

1. Clone the repository:
```bash
git clone https://github.com/sanjay2902/Tic-Tac-Toe-Pygame.git
cd tic-tac-toe
2.pip install pygame
3.python tic_tac_toe.py

How to Play
Main Menu: Choose "Human vs Human" or "Human vs Computer."
Gameplay: Players take turns clicking on cells to place their marker. O always goes first.
After Game: Click "Restart" to replay or "Back to Menu" to return to the main menu.

Requirements
Python 3.7+
Pygame

File Structure

tic-tac-toe/
├── tic_tac_toe.py # Main game script
└── README.md # Documentation

Future Features
Smarter AI with difficulty levels.
Winning animations.
Sound effects for game actions.