Live data from Hacker News

2048

gabrielecirulli.github.io

291–300 of 423 posts

Re: 2048

#292
I can't help but feel like there's a fairly simple heap invariant hiding in the solution here...

Re: 2048

#293
post #151

Earlier quoted context omitted.

Programmer Step #2 - write an automated solver :)

I thought about this for 5 minutes and really got nowhere. Can anyone come up with a nice analytic way to think about an algorithm? There are a couple of brute force approaches: a) always pick the direction that will result in the most blocks to combine, b) always pick the direction that will result in the largest score.

I know someone was working on an AI that plays Threes (the game that inspired this one). Haven't seen any code from him though.

http://forums.toucharcade.com/showthread.php?p=3142737#post3...

Re: 2048

#294
post #190
post #112

Earlier quoted context omitted.

I did it by pressing up-left-down-right, repeating each direction as many times as possible. That's the worst part - knowing that your carefully calculated playthrough is actually no better than someone just pressing the keys in a set order.

Ran your strategy 162 times with autoit of which the following blocks came by: [128]: 150 times, [256]: 36 times, [512]: 13 times, [1024]: 0 times. Anyone else a good suggestion for an optimal "blind" strategy?

Perhaps I had a little bit of luck. But this shows you can easily get to 256 with little dedication. After which you can start to puzzle things together.

Also about your autoit "analysis" 36 + 150 + 13 != 162

Re: 2048

#299

Hey guys! I made a multiplayer version of this game in about an hour or so. (Twitch plays pokemon style) http://hnplays2048.herokuapp.com/ Check it out! Or clone it! https://github.com/grant/hnplays2048

That's pretty funny! Well done!
Post reply on HN