←
Portfolio
Tic
·
Tac
·
Toe
unbeatable minimax AI
Source ↗
Your move
Difficulty
Easy
Medium
Perfect
You
0
· Draws
0
·
AI
0
You play
X
O
First move
You
AI
Alternate
🧠 Show AI reasoning
New game
Reset scores
You are
orange
, the AI is
cyan
. On
Perfect
the AI runs full minimax with alpha-beta pruning — it never loses. Flip on
reasoning
to see the score it gives every move (
+
= AI wins,
0
= draw,
−
= AI loses).