Tic-Tac-Toe vs AI

Beat the minimax AI — if you can. Built with vibecoding in ~15 minutes.

Difficulty
Goes first
Your move
W 0L 0D 0

Built with this prompt

Build a Tic-Tac-Toe game in React with:
- A 3x3 board where the human plays X and the AI plays O
- An unbeatable AI using the minimax algorithm, plus an easy mode that plays randomly
- A difficulty toggle and a "who goes first" toggle
- Win/draw detection that highlights the winning three-in-a-row
- A scoreboard tracking wins, losses, and draws across rounds
- A new-game button that keeps the score
- Dark theme with purple accents