A modern, animated desktop Tic-Tac-Toe game built with Python and Tkinter. Inspired by the dark UI style of PyGenPass — featuring smooth animations, purple accents, and a polished two-player experience.
- Animated symbols – X and O scale up smoothly when placed on the board
- Hover preview – see a ghost of your symbol before clicking
- Win highlight + pulse – winning cells glow gold and pulse repeatedly
- Draw animation – board fades to grey on a tie
- Slide-in status bar – current player indicator animates into view
- Score counter – animated count-up for X wins, O wins, and draws
- Fade-in startup – window fades in on launch
- Animated buttons – smooth color interpolation on hover/press
- Session reset – reset scores across multiple rounds
- Zero dependencies – only Python's built-in
tkinterrequired
**Color coding:**
- 🌸 Pink — Player X
- 🌊 Teal — Player O
- 🟡 Gold — Winning cells (animated pulse)
- 🟣 Purple — Accent / UI chrome
---
## 🚀 Getting Started
### Requirements
- Python 3.10 or newer
- No additional packages — uses only the standard library!
### Run
```bash
python main.py
On Windows you can also double-click run.bat.
- Launch the app — Player X always goes first.
- Click any empty cell to place your symbol.
- First to get 3 in a row (horizontal, vertical, or diagonal) wins!
- Winning cells will glow and pulse in gold.
- Press ⟳ New Game to start a fresh round (scores are kept).
- Press ✕ Reset Scores to wipe the session scoreboard.
TicTacToe/
├── main.py # Full application (game logic + UI + animations)
├── run.bat # Windows one-click launcher
├── README.md # This file
└── LICENSE # MIT License
Windows: Win + Shift + S → select the app window
macOS: Cmd + Shift + 4 → click-drag over the window
Linux: Use gnome-screenshot, scrot, or flameshot
For a clean portfolio screenshot:
- Launch the app and play a few moves
- Let a player win so the golden pulse animation is visible
- Capture the full window
- Python — core language
- Tkinter — built-in GUI framework
- Custom
AnimButtonclass — smooth interpolated hover animations - Canvas-based animations — no external animation libraries needed
MIT License — see LICENSE for details.
