Back to front pageView on Hacker News (opens in a new tab)2048 (opens in a new tab)gabrielecirulli.github.io2903 pointsby frederfred (on Hacker News)12 years agogabrielecirulli.github.io (opens in a new tab)Join the numbers and get to the 2048 tile! Careful: this game is extremely addictive!Comments (410) 175 threadsShow all commentsShowing thread 5 of 175[-]throwaway_yy2Di12 years ago1 reply#For those "playing" in the javascript console, here's one way to get a handle on the (inaccessibly scoped) game objects: GameManager.prototype.__actuate = GameManager.prototype.actuate; GameManager.prototype.actuate = function() { window.gm = this; this.__actuate(); } On the next move, the game object will exfiltrate itself into the global window namespace. gm.grid.eachCell(function(x,y,_) { gm.grid.cells[x][y] = new Tile({x:x, y:y}, 1024); }); gm.actuate();[-]terabytest12 years ago1 reply#Heh, nice trick! The only way to get high score is to actually play, though :P[-]thronoprocrast12 years ago1 reply#Not quite: http://i.imgur.com/Zr8piE7.pngSet it to a 6x6 grid.thronoprocrast12 years ago#Hey Steven, you should include the actual clickable URL. Noob
2048 (opens in a new tab)gabrielecirulli.github.io2903 pointsby frederfred (on Hacker News)12 years ago
throwaway_yy2Di12 years ago1 reply#For those "playing" in the javascript console, here's one way to get a handle on the (inaccessibly scoped) game objects: GameManager.prototype.__actuate = GameManager.prototype.actuate; GameManager.prototype.actuate = function() { window.gm = this; this.__actuate(); } On the next move, the game object will exfiltrate itself into the global window namespace. gm.grid.eachCell(function(x,y,_) { gm.grid.cells[x][y] = new Tile({x:x, y:y}, 1024); }); gm.actuate();
terabytest12 years ago1 reply#Heh, nice trick! The only way to get high score is to actually play, though :P
Comments (410) 175 threads
Show all comments
Showing thread 5 of 175
Set it to a 6x6 grid.