TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What is the optimal algorithm for the game 2048?

69 pointsby xmjwabout 11 years ago

4 comments

ccubessabout 11 years ago
Expectimax is the correct algorithm. But to get the best result, you will have to add a few heuristics to it and other tricks.
lightblaineabout 11 years ago
I wrote a &quot;Zoolander&quot; algorithm for beating 2048. OK, it&#x27;s super simple, but I hope it helps-Enjoy!<p><a href="http://blog.blainelight.com/2014/03/how-to-beat-2048.html" rel="nofollow">http:&#x2F;&#x2F;blog.blainelight.com&#x2F;2014&#x2F;03&#x2F;how-to-beat-2048.html</a>
yodsanklaiabout 11 years ago
It seems there&#x27;s a lot of buzz around this game. Is there a particular reason for that?
评论 #7451103 未加载
评论 #7451293 未加载
binarymaxabout 11 years ago
--Spoiler alert--<p>Someone revealed in that thread that you should never move down. I tried moving only up, left, and right and won easily, so the strategy is solid.
评论 #7450799 未加载
评论 #7452464 未加载
评论 #7451198 未加载