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.

Can AI beat 2048?

21 pointsby ivstitiaover 10 years ago

9 comments

maaaatsover 10 years ago
I&#x27;m TA for an AI course at my university. They recently had to deliver and demonstrate their system beating 2048. Most people used min&#x2F;max with alpha-beta pruning, and considered all possible moves and all possible placements of a 2 or 4 tile. This can make your bot a bit too cautious, so some used Expectimax instead, weighting each value with the probability of it happening.<p>Those who had simpler heuristics did better. Trying to combine 4-5 heuristics is hard, as you have to weight them against each other. The &quot;gradients&quot; mentioned here did alone produce good results for most students. Of the ~50 people, most managed to demonstrate to me that they could get a 2048 tile within a time limit. Some even 8k and 16k tiles.<p>I think most of them got the &quot;Tetris-effect&quot; by watching their bot play a few rounds, tweak, run it again etc. for a few days. Probably watched blocks sliding around when making food etc. :p
marcofisetover 10 years ago
In my case it actually lost, but by watching it play I can tell it made very questionnable decisions about some moves, and it plays a lot less defensively than I usually do. It managed to get really far, only a couple of moves away from winning. It actually had assembled every piece for winning, only it failed to group them together to achieve 2048. Pretty incredible!<p>Also a very interesting read.
评论 #8726922 未加载
Jeremy1026over 10 years ago
As the write up says, this is way more addictive. I&#x27;m cheering it along every move it makes.
rikacometover 10 years ago
The brilliance of this post is not in the fact that a AI program can beat another AI program, but if a human conceivable algorithm of this length can beat the raw cognitive power of human users itself. I would be seriously diggin this.
ascotanover 10 years ago
I let the algorithm run to the end. 78992 points. Not only did I win I got a 4096 square (which is black btw) and another 2048 square. It died very close to getting an 8192 square.
bennyover 10 years ago
Rly like that game too, did you try it with alpha beta pruning? should considerably speed up the &quot;look into the future&quot; thing compared to simple min&#x2F;max
评论 #8726930 未加载
nkantarover 10 years ago
I got way too hooked on the game but never actually managed to beat it. This makes me wonder whether I could write something that <i>could</i> faster.
justhwover 10 years ago
<a href="https://ov3y.github.io/2048-AI/" rel="nofollow">https:&#x2F;&#x2F;ov3y.github.io&#x2F;2048-AI&#x2F;</a>
评论 #8725927 未加载
uberneoover 10 years ago
This looks cool.. I have the same addiction .. whats the max score you have reached? by urself and by AI?
评论 #8724940 未加载