Live data from Hacker News

2048

gabrielecirulli.github.io

311–320 of 423 posts

Re: 2048

#312

Earlier quoted context omitted.

Or an expansion on that. Keep track of how many 128s, 256s etc you've ever formed. Show them as big counters directly under the game with an animation when you create any of them.

Log scale histogram? Edit: Actually all you need to store is the highest block achieved, and the number of times it's been hit. For instance, if you've only ever generated 2 8's, then you know that you've had 4 4's, and 8 2's... Edit 2: Does the game allow four 2's to cascade into an 8? If so, maybe you could also store combo stats. It'd be way cooler to smash together four 256's than to smash together two 256's two…

> For instance, if you've only ever generated 2 8's, then you know that you've had 4 4's

You know you've had at least 4 4's, but you could have had more.

Re: 2048

#313

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…

Yeah, good advice. Took me about a day of playing, finally won with 21276 points.

Re: 2048

#314
post #36

Earlier quoted context omitted.

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'd be interested in seeing the lowest winning score, highest winning score, and lowest losing score (!)

Re: 2048

#315

Earlier quoted context omitted.

I was so addicted to Drop7, and so annoyed at the crappy Android version, I made my own HTML/JS version with appcache, so I could play it in chrome offline: https://github.com/pavellishin/drop7

This is fantastic! Thanks so much for sharing, I learned so much from reading your very elegant and well-commented code. Just in case anyone is looking at this and wants a direct link to play pavel_lishin's version, here's the raw github version: https://rawgithub.com/pavellishin/drop7/master/drop7.html Side note: I got hooked on Drop7 during my first semester in college. I was fascinated by the game and wrote a simu…

Ooh, nice! I thought about writing some sort of AI to play for me, but never got around to it. (Plus, it felt weirdly oroborous-like.)

Re: 2048

#316
post #221
post #177

Earlier quoted context omitted.

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…

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.

Re: 2048

#318
post #140

Earlier quoted context omitted.

Tried 3 games, and the scores were 2700, 1200, 5000. So maybe. But then I wrote a function to play it for me: var manager = new GameManager(4, KeyboardInputManager, HTMLActuator); function play() { manager.restart(); var m = 0; while (!manager.over) { manager.move(m); m = (m+1)%4; } return manager.score; } ... and that gets scores between 500 and 3000. (Edit) Histogram of 500 runs: 0k: *** 1k: ******************* 2k:…

Which is about the same score you get if you concentrate and really try hard to get a high score. I think this might be a "hacker" version of the slot machine - the player feels as if he's in control while in fact the outcome is pretty random.

Nah, if I concentrate I can get to 14k. I haven't actually won yet, though; I keep making a mistake.

Re: 2048

#319
After reading some comments I finally understood... It's not about creating [2] [_] [4] [8] line of tiles, but summing them so there is a tile of value '2048' (silly me)

Re: 2048

#320

Quite a lot of fun. One minor nit: if the board is full, but you can make a move that will free up a space, you can make that move and the new tile will appear in the newly opened space, but then the game immediately ends afterward. EDIT: OK, apparently this only happens if there are actually no more moves; as long as moves remain the game continues. Also, hitting "space" reset the entire game; I'd expected it to eit…

That's intended. In 'Threes' for the iPhone you have to use that remaining block to solve more as you can see what's coming next.
Post reply on HN