Live data from Hacker News

2048

gabrielecirulli.github.io

321–330 of 423 posts

Re: 2048

#322
post #177
post #82

Earlier quoted context omitted.

I'm gonna call fake on this one.

There's actually a semi-optimal strategy that nearly guarantees winning if you're diligent about it. Just build a stairstep pattern with the highest numbers in the bottom corner of the stairs. Then basically combine sideways and downward and "always" resist the temptation to push up. Its kind of how some tri-diagonal matrix algorithms work. The only problem is you have to be fastidious about never using the one direc…

I found one not-completely-horrible strategy was just blindly running round the curser keys.. eg. up - right - down - left, repeatedly. Got near 4000 points with that..

Great game though - wasted waaay too much time last night playing.

Re: 2048

#323
post #198

Earlier quoted context omitted.

I was surprised at how well that worked. I was basically blindly cycling between left,down,right (with one accidental up) and got to 1024 on my first try.

function press(key) { var eventObj = document.createEvent("Events"); eventObj.initEvent("keydown", true, true); eventObj.which = key; document.dispatchEvent(eventObj); } for (y=0; y this gave me 1024 in couple of tries :D http://i58.tinypic.com/am9sh4.png

Here's a random key press loop: function press(key) { var eventObj = document.createEvent("Events"); eventObj.initEvent("keydown", true, true); eventObj.which = key; document.dispatchEvent(eventObj); } for (y=0; y<=1000; y++) { press(Math.floor(Math.random() * 4) + 37); }

Re: 2048

#324
post #305
post #301

Earlier quoted context omitted.

Best strategy (for me) seems to be to play it like tetris. Never ever use the up key and create a row at the bottom where everything collapses into it. This sort of clicked towards, oooh I don't know about 1:30am this morning.

That sort of works, I've been using a similar strategy but switching what I call "bottom" whenever the moment suits.

I'll have to look into that way of playing.

Re: 2048

#325
post #150

Earlier quoted context omitted.

Yes! At the very least put up a BTC or Dogecoin address we can send donations to!

Not sure if I can do that. Wouldn't it be unethical and unfair to the other developers?

You can always pay some sort of % as tribute, but you've created something that we all find a horrendous waste of time :-) so a way of remunerating you to some degree is not in the least bit unethical.

It's good to get paid for your work, even if it was fun.

Re: 2048

#326

Not many posting winning scores, so here's mine: 2048 and 20368 points http://imgur.com/c3aHuT4 I'm not going to claim it was first try. Probably my tenth. However, I got much better at avoiding the key mistakes: - Always keep your highest number in a corner - Use the rest of that edge as a "staging area" for the components that can next double the highest tile. Work the other tiles toward the opposite corner on that…

With this technique, the lowest I've scored is in the 6,000s, and that was when I veered from the protocol. (That bloody 3×4)

Re: 2048

#327
post #305
post #301

Earlier quoted context omitted.

Best strategy (for me) seems to be to play it like tetris. Never ever use the up key and create a row at the bottom where everything collapses into it. This sort of clicked towards, oooh I don't know about 1:30am this morning.

That sort of works, I've been using a similar strategy but switching what I call "bottom" whenever the moment suits.

The enemy gate is down.

Re: 2048

#328
post #237

I finally won! 2048 with a score of 20556. This game is evil!

My strategy is to always try to keep the high number blocks on one edge of the square. The highest block should be in the corner, then the blocks should be sorted by decreasing. E.g : 512 256 128 64...

http://imgur.com/PNRIfW6

Re: 2048

#330
post #177
post #82

Earlier quoted context omitted.

I'm gonna call fake on this one.

There's actually a semi-optimal strategy that nearly guarantees winning if you're diligent about it. Just build a stairstep pattern with the highest numbers in the bottom corner of the stairs. Then basically combine sideways and downward and "always" resist the temptation to push up. Its kind of how some tri-diagonal matrix algorithms work. The only problem is you have to be fastidious about never using the one direc…

It's a good start but you will get stuck at higher level. in your case focus on increasing the value on the bottom left. When possible, shift the last line to the right. Never go up.
Post reply on HN