How to Play
- Tap a cell to place your piece. Get three in a row — across, down, or diagonal — to win.
- You play X; the AI plays O. In 2-Player mode, players alternate on the same screen.
- Press P or the pause button to pause; press Esc to resume.
AI Difficulty
- Easy: Plays a fully random legal move.
- Medium: Always takes a winning move, always blocks yours — otherwise random.
- Hard: Minimax with alpha-beta pruning. Perfect play — beating it is mathematically impossible.
Scoring
Leaderboard score = your current win streak vs the AI. A loss or draw resets it; draws vs Hard count as +0 (still a respectable defense).