Strongly Solving 2048 4x3
This paper presents the strong solution of the 4x3 variant of the stochastic game 2048, determining an optimal expected score of approximately 50,724.26 by utilizing an age-based partitioning technique to manage its vast state space of over 1.15 trillion reachable states.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine the popular puzzle game 2048 as a giant, chaotic kitchen where you are trying to combine ingredients (tiles) to make bigger and bigger dishes. In the standard version, you have a 4x4 grid (16 spots). In this paper, the authors decided to shrink the kitchen down to a 4x3 grid (12 spots), making it a tighter, more crowded challenge.
Here is the simple breakdown of what they did, how they did it, and what they found, using everyday analogies.
1. The Big Challenge: A Library Too Huge to Read
The authors wanted to "strongly solve" this smaller version of the game. In game terms, this means they didn't just want to know the best move for the start; they wanted to know the perfect move for every single possible situation the game could ever reach.
Think of the game's possible situations as a library.
- The original 3x3 version (Mini2048) was like a small bookshelf with about 48,000 books. Easy to read.
- This new 4x3 version is a massive library with over 1.15 trillion books (states) and nearly 740 billion "intermediate" books (afterstates).
Trying to read every book in this library one by one would take forever and require a computer with more memory than exists in the world. The authors needed a magic trick to organize this library so they could solve it in just a few days on a regular personal computer.
2. The Magic Trick: The "Age" of the Game
The key to their success was a concept they call "Age."
Imagine every time you play the game, you are adding weight to a scale.
- When you start, you have two tiles (say, two 2s). The "Age" is the sum of all numbers on the board (2 + 2 = 4).
- When you slide tiles and merge them, the numbers double, but the Age stays exactly the same. (Merging two 2s into a 4 doesn't change the total sum).
- The only time the Age changes is when the computer randomly drops a new tile (a 2 or a 4). This adds 2 or 4 to the Age.
The Analogy:
Think of the game not as a maze, but as a multi-story building.
- Each "floor" of the building represents a specific Age (e.g., Floor 4, Floor 6, Floor 8...).
- You can move around freely on the same floor (sliding and merging tiles) without going up or down.
- You only move to the next floor when the computer drops a new tile.
Because the game always moves forward in Age (you never go back to a lower sum), the authors could treat the library floor by floor. They didn't need to hold the whole library in their head at once. They just needed to keep the current floor, the next floor, and the one after that in their memory. Once they finished calculating the best moves for Floor 100, they could throw away the data for Floor 98 to make room for Floor 102.
3. The Compression: Fitting a Whale in a Backpack
Even with this floor-by-floor trick, the data was still huge. If they tried to write down every single game state on paper, it would take up about 4.4 Terabytes of hard drive space (roughly the size of a massive data center).
To fix this, they used a clever data compression technique called Elias-Fano coding.
- The Analogy: Imagine you have a list of 1 billion people, but they are all wearing red shirts. Instead of writing "Red Shirt" next to every single name (which wastes space), you write a special code that says, "Everyone in this list is wearing red."
- They found a way to compress the "ID cards" of every possible game state down to about 1.4 Terabytes. If they only cared about the best moves (ignoring the raw data), they could shrink it even further to about 300 Gigabytes (the size of a high-end laptop's hard drive).
4. The Results: What Did They Learn?
By solving the game, they calculated the perfect expected score for a player who never makes a mistake.
- The Score: If you start with the most common setup (two 2s) and play perfectly, you can expect to score about 50,724 points.
- The "Bad Luck" Factor: They found that starting with a 4 tile instead of two 2s actually puts you at a slight disadvantage (about 4 points lower). It's like starting a race with a heavy backpack; you have to work harder to catch up.
- The "2048" Hump: The graph of their results showed "valleys" (dips in performance) whenever the Age reached multiples of 2048. This confirms a feeling many players have: it gets incredibly hard to make the 2048 tile because you are running out of space on your small 12-square board. You need perfect arrangement to fit all the smaller numbers (2, 4, 8... up to 1024) before you can combine them.
Summary
The authors took a game that seemed too complex to solve completely because of its massive number of possibilities. They realized that the game naturally organizes itself by the "sum of numbers" (Age). By treating the game as a series of floors rather than a giant tangled web, and by using a super-efficient filing system (compression), they mapped out the perfect strategy for every possible move.
They proved that with a standard computer and a few days of work, you can mathematically master a game that usually relies on luck and intuition.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.