Lurker News
Back to discussion

Comment by terabytest

terabytest3 replies#
If that's real, congrats! I had started doubting that anybody would ever win the game :P
samstave2 replies#
Can you add in how many moves!!?
birdmanjeremy#
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.
duskwuff2 replies#
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.
jsmthrowaway1 reply#
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_...

Continue this thread — 1 reply

samstave1 reply#
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.

Continue this thread — 1 reply

birdmanjeremy#
It took me a few tries, but it's definitely winnable.
kaybe#
Do you have new numbers? I got a bunch of people addicted and I assume I'm not the only one.