63 comments

[ 2.9 ms ] story [ 118 ms ] thread
Well, that escalated quickly
my thoughts precisely
And the productivity goes down by the same factor.(2^53 btw )

I finally reached the 2048. :)

I think I understand now why candy crush is so popular.

> 8192.

> 16384 and I'm done. Manually

There needs to be a save feature.

(comment deleted)
Did you get to 16384 manually? This is what I got after (roughly) 12000 random moves:

http://imgur.com/EnROFm9

Can any math people figure out how many years it would take to finally end this? (Not win, just lock it up).

I locked up a board manually in about 10 minutes, with intent. Someone skilled should be able to do it in less.

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

(My technique: Toggle left-right until no movement happens. Tap up. Repeat from start.)

I just got to that manualy... its not that hard.
I'm on a laptop with 1366*768 screen; had to zoom out massively :(
I don't see the game , just doing up,left,up,left, for ages and get points ... so ?
I've managed to get a higher score by randomly pressing arrow keys than actually trying.
Long distance running is easy too, isn't it.
The point of this game is to lose in the fewest number of steps.
ok... how many years would it take to actually get the final number?
27133559.5 years if you do 10 presses per second.
I think I won't play that any more.
gotta write some js to setInterval to do 1000 presses every 1 ms . Then it will only take 270 yrs :P
HAHAH what? Challenge accepted
Lame cargo cultism. Find something different to do besides just increasing the array size.
Can we apply the same AI to this and make an screen saver out of this?
Watch and wait :)

```

game = new GameManager(8, KeyboardInputManager, HTMLActuator, LocalScoreManager); setInterval(function (){ for(var i =0; i < 100; i++){game.move(Math.floor(Math.random()*4));}},1000)

```

If you're using Chrome, this should save you some time:

  function step() {
      var eventObj = document.createEvent("Events");
      eventObj.initEvent("keydown", true, true);
      eventObj.which = 37 + Math.floor(Math.random(0, 1)*3);
      document.dispatchEvent(eventObj);   
  }
  int = setInterval(step, 0.001);
Huh.

After a few minutes of this, it told me the only way to win was not to play the game.

Yeah, the sum of the numbers on the board goes up by at most four each turn.
This never presses the down key. A small correction so it'll move randomly in all directions

  function step() {
      var eventObj = document.createEvent("Events");
      eventObj.initEvent("keydown", true, true);
      eventObj.which = 37 + Math.floor(Math.random(0, 1)*4);
      document.dispatchEvent(eventObj);   
  }
  int = setInterval(step, 0.001);
I think that's the point, since one of the key strategies to this game is to only use 3 of the direction keys.
(comment deleted)
I didn't realize that :-p Good looking out!
Based on comments from the 2048 thread, I'm running a deterministic variant of this which just cycles Left, Down, Right, Down.

After an hour or so, the largest tile is 524288, 2^19: http://i.imgur.com/Yk758sx.png

While I was writing this comment, it collapsed down to the next largest tile, 1048576, 2^20: http://i.imgur.com/PVPCvUC.png

And I thought I went too far with 32k...
First ever comment since signing up.

This is diabolical.

DIABOLICAL!

I finnaly did it... oh wait ! Only 9007199254738944 left
"I don't understand idempotence, can you explain what it is?"

"Let me show you what it's NOT."

Space bar resets. I didn't know that space bar resets. I am so crushed.
This is nothing but a pure button masher... just hit the keys real fast. Use a strategy of "shaking" e.g. hit left,right quickly in succession a bunch of times to fill the board followed by a "circle" e.g. up left down right a bunch of times. I really don't like hating on a HN submission, but either this game is very lame or I am missing the point entirely. :P
It's kind of absurdist humour. HN has been full of responses to the rather clever 2048 game lately -- 2048 in HTML5, 2048 in the smallest number of bytes, the 2048 AI solver, 2048 in Brainfuck, 2048 in Latin, etc etc etc. This is amusing to me because the subject line looked almost like one of those obnoxious Bitcoin transaction posts, thus bringing together HN's latest fad with its eternal obsession, in my mind at least.

Now, complete this sentence: 2048 on HN will jump the shark when someone posts...

The logical conclusion to this sequence is somebody making the polar opposite of this entry. Namely, a game called 2. It's a 1x1 grid, and you begin in the winning state.
Can we please have TwitchPlays9007199254740992?
This is even a game that Twitch would actually be GOOD at!
I want to make an AI to play this. This might be a dumb question, but how would I get the input and output to and from the game?
It is a pretty simple game. I don't think it really needs an "AI" to play. A few people have already posted a few javascript solutions.
After hammering on my keyboard (somewhat) coherently for a long time, I would conjecture that the board is too large. So I tried to us down and either left or right alternately and switching left and right when a position would not move anymore. At least until 8192 and ~200k points, random fluctuations seem to clear always enough stones that the board was never more than half full.
Thanks to games like this and 2048, more people will start seeing and memorising powers of 2. That's definitely not a bad thing...
Yes, that'll certainly happen, but what's the use of memorizing powers of two for people not in CS?
I get a really strong Tetris effect[0] after playing this game. I get an urge to move all text on this page to upper right corner. Anyone else?

[0] http://en.wikipedia.org/wiki/Tetris_effect

It must have been a while since you played tile based games. I had a similar experience a year ago when I made a simple tetris game and tested it non-stop for a day. Since then I can't achieve the same effect. But before that I haven't played such games in years. It really shows how persistent out memory is. One day and you're good for years.
According to DynDNS it's a malware site.

www.csie.ntu.edu.tw is blocked in your Defense Plan Content Blocked

This is a known Spyware? website, which is blocked as specified in your Defense Plan?.

I have no particular connection to the site. I just posted it because a friend sent it to me, so it might be.
DynDNS is painting with an unavoidably broad brush. It's a student page at the CS department of NTU -- National Taiwan University. I'm sure the server has hosted something unsavory at some point, but this particular page is hardly threatening.
I find this interesting because it hooks into the obsession many gamers have with constantly increasing (large) numbers in games like diablo or other RPGs in order to feel accomplishment. The original game was significantly more clever, but had an end, and would turn off a lot of people due to it appearing difficult.

The question is if you wrapped this up as an RPG instead of a puzzle game, would people play it?

that game just stole 2hrs of my life.