2048 Löser

Heuristic solver für the 2048 board; expectimax search

About this tool

Heuristic expectimax solver for the game 2048. Plays the board for you (or just suggests one move).

Heuristic

Weighted sum of: empty-cell count, monotonicity of rows + columns, smoothness (small differences between adjacent tiles), log₂ of the maximum tile, plus a corner bonus when the maximum is in any corner.

Search

Expectimax with player moves (max) and 2/4 spawns (chance, 90/10). Higher depth → stronger play but exponentially slower per move.

Controls

Arrow keys (or buttons) for manual play. Auto-play runs at the chosen ms-per-move.