News for hackers. Stuff that matters.
Re:9007199254740992 by danielsamuels on Saturday March 15, 2014 @08:04PM (#7407143)
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);
Re:9007199254740992 by gracenotes on Saturday March 15, 2014 @11:33PM (#7407672)
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

Re:9007199254740992 by saganus on Sunday March 16, 2014 @12:30AM (#7407833)
And I thought I went too far with 32k...
Re:9007199254740992 by trothamel on Saturday March 15, 2014 @09:32PM (#7407392)
Huh.

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

Re:9007199254740992 by rapsnoj on Saturday March 15, 2014 @11:54PM (#7407735)
Yeah, the sum of the numbers on the board goes up by at most four each turn.
Re:9007199254740992 by goldbeck on Saturday March 15, 2014 @09:39PM (#7407409)
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);
Re:9007199254740992 by kayzser on Saturday March 15, 2014 @09:41PM (#7407414)
I think that's the point, since one of the key strategies to this game is to only use 3 of the direction keys.
Re:9007199254740992 by goldbeck on Saturday March 15, 2014 @10:41PM (#7407552)
I didn't realize that :-p Good looking out!