News for hackers. Stuff that matters.
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!