Score
0
Best
0
AI is idle — Press Start AI or use arrow keys to play
How the AI Works
The AI uses the Expectimax algorithm, a variant of minimax designed for games with randomness. It searches 3-5 moves ahead depending on board complexity.
The evaluation function scores boards using a snake-weighted pattern that keeps high tiles in the corner, plus bonuses for empty cells and monotonic rows.
Search depth adapts dynamically: fewer empty cells triggers deeper search for more accurate play in critical positions.