2048 Solver
An expectimax AI, live in your browser. Ask it for hints, or let it drive.
An AI Coach for 2048
This 2048 solver runs the same class of algorithm researchers use to crack the game - expectimax search - directly on this page, no server involved. Use it two ways: press Hint mid-game for a recommendation on your exact board, or hit Autoplay and watch perfect-discipline 2048 at speed. The board above is a normal game (your solver-page progress even saves separately), so you can hand control back and forth with the machine at any point.
What to Watch For
- The forbidden direction. Count how rarely the AI swipes toward its big-tile corner - that restraint alone is most of the corner strategy.
- Losing on purpose, locally. It will sometimes take a "worse" swipe to preserve edge order - structure outbids points, every time.
- How it dies. The rare lost games showcase the luck floor measured in luck versus skill: sometimes every branch is bad.
Curious how the search actually works inside? The algorithm explainer walks through expectimax and the heuristics in plain language.
Frequently Asked Questions
How does the 2048 solver work?
It runs expectimax search: for each possible swipe it simulates the moves ahead, averaging over every tile the game might spawn (weighted 90/10), and scores resulting boards on empty space, orderly tile chains, and a cornered maximum tile. The swipe leading to the best expected position wins. It runs entirely in your browser.
How often does the AI win?
We measured ours rather than guessing: over sample runs it reaches 2048 in roughly a third to a half of its games, with a typical best tile of 1024 or 2048 and a typical score around 17,000 to 25,000. That is well above casual human play and well below the published research solvers, which are given seconds per move and reach 2048 almost every time. The difference is the time budget: this one thinks for under a tenth of a second per move so the page never freezes while you watch. Losses happen on genuinely unlucky spawn sequences, and watching one is a good lesson in the game's luck component.
Can I use hints in my own game?
Yes - that is the best use of this page. Play normally and press Hint whenever you are unsure; the solver analyzes your exact board and recommends a direction. Using it at tense moments is like having a coach on call.
Is watching the solver a good way to learn?
The best on this site. Notice what it never does: it almost never swipes toward its big-tile corner, never leaves merges unclaimed for long, and keeps one edge in strict descending order - the corner strategy, played with perfect discipline.