Tic Tac Toe
Play against an AI that never makes a mistake — or pass the phone to a friend.
Mode
Difficulty
0
You (X)
0
Draw
0
AI (O)
Your turn (X)
Can you beat the AI?
On Hard difficulty, the AI uses the minimax algorithm with alpha-beta pruning — it evaluates every possible future board state and always picks the optimal move. Against a perfect minimax player, the best result a human can achieve is a draw. It is mathematically impossible to win.
Medium difficulty uses minimax to depth 3, so it plays well but makes occasional suboptimal choices. Easy picks random valid moves, making it a fair challenge for beginners.