Skip to content

Instantly share code, notes, and snippets.

@bih
Created March 30, 2014 14:15
Show Gist options
  • Save bih/9873356 to your computer and use it in GitHub Desktop.
Save bih/9873356 to your computer and use it in GitHub Desktop.
Instant win of Gabriele's 2048 game.
# Need a way to kill the addictiveness of the 2048 game? Paste this into yo' console.
# http://gabrielecirulli.github.io/2048/
var t;(t=new GameManager(4,KeyboardInputManager,HTMLActuator,LocalStorageManager));t.startTiles=0;t.setup();while(t.grid.cellsAvailable()){t.grid.insertTile(new Tile(t.grid.randomAvailableCell(), 1024));};t.actuate();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment