Hacker News new | past | comments | ask | show | jobs | submit login

Out of curiosity, I'd love to hear what your Google Analytics graphs look like! How long to people spend playing it?



Right now there are around 2100 people on the site and an average visit duration of around 4 minutes :)


How many reached 2048?


The latest stats show no "game-win" events :P It might just be a matter of time though.

EDIT: oops, there was a bug in the win/lose tracking so I probably missed out on a few wins. I fixed it now, so it should hopefully track it if someone else wins!


I just beat it! First try.. but I've been addicted to Threes for the past week or so.

http://i.imgur.com/nf25AVZ.png


If that's real, congrats! I had started doubting that anybody would ever win the game :P


It took me a few tries, but it's definitely winnable.


Do you have new numbers? I got a bunch of people addicted and I assume I'm not the only one.


Can you add in how many moves!!?


Each turn, one 2 tile is added, and other tiles may be combined. So you can derive the move count by adding together the numbers on all the visible tiles and dividing by 2.


This is inaccurate, because you have a 10% chance of getting a 4 tile added instead of a 2. That part makes the game tricky, because otherwise you could optimize every solution like an algorithm without ever losing.

    var value = Math.random() < 0.9 ? 2 : 4;
https://github.com/gabrielecirulli/2048/blob/master/js/game_...


Oh, huh, I didn't even realize it was doing that. Even so, the move count will still be roughly proportional to the sum of the board (plus or minus some random variation), won't it?


Thanks Neckbeard,

I refuse to do these calculations in my head...

The author should do this, and create a counter of moves within the app.


eh... Sorry - I was tipsy when I posted that...


This would be cool. I think winning in the fewest moves would be the most impressive. i.e. how few tiles you 'waste'. Though winning with the lowest score may approximate this.



http://www.screencast.com/t/NYuiFDueop8

:P I guess it was almost perfect attempt, and the quickest of mine so far (just a single 16 apart of 2048)


okay, and i win... and my record is 32768 score so what? it was fun) my screen: http://upload.freehacks.ru/MKPEP2 my implementation and guide you can found there: http://vk.cc/2nGPL3


Looks legit


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 direction you've reserved as your excluded case (Up in my example) as that can screw your staircase by putting a [2] right underneath your wonderful [1024]. Just move blocks back and forth, waiting for the right blocks to create combo patterns, while generally storing lower cost blocks on the outside of the stairs, and then snake them through the stairs when you get a chain set up.

Ex:

x x x 2

x x 2 4

x 2 4 8

2 4 8 16


Did that, got stuck like that, pretty unfortunate.

http://puu.sh/7rKEF.png


After half an hour playing blindly I realized this, but even using this it´s hard to go beyond 500


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.


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.


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<=1000; y++) { press(39); //right press(40); //down press(37); //left press(40); //down }

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); }


Yes, I also discovered this after 20ish minutes of playing. If you're not diligent about it, it's very hard to recover.


However, I've locked myself a few times so it was impossible to go on without using 'up' (or whatever):

x x x x

x x x x

o o o o

o o o o

where at no point the same numbers next to each other allow collapsing. Maybe it's the problem not growing from the corner.. hm.


With enough tries anything is possible. There is probably even a person who ascended nethack on his first try (using the wiki of course, we're still talking things with p > 0) and didn't play it again because it's too easy and boring.


I've seen that. Wiki, #nethack, valkyrie, and some decent but not extraordinary luck.


And here's another win, took me a fair few hours though.

http://imgur.com/9FckZVX


I'd be interested in seeing the lowest winning score, highest winning score, and lowest losing score (!)


Managed to purposefully lose with 627 points. Lowest I've managed to lose by. :)


Beat the game: http://oi62.tinypic.com/2wdopq9.jpg

At least I don't have to spend any more time on it.

My simple strategy was to keep the biggest blocks in a corner at all times.


It took me 2-3 hours on friday, and some luck :) http://imgur.com/PNRIfW6


I did, with 23000 points.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: