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 threadsEarlier commentsjozydapozy12 years ago#This script will give you a keyboard-shortcut to skip the 'boring beginning' of the game. Run it a few times to get a nice starting point:function arrows(key) { var eventObj = document.createEvent("Events"); eventObj.initEvent("keydown", true, true); eventObj.which = key; document.dispatchEvent(eventObj); }document.onkeypress = function (e) { e = e || window.event; if (e.charCode = 122) { for (y=0; y<=100; y++) { arrows(39); arrows(38); arrows(37); arrows(38); } } };var divje = document.createElement('div'); divje.innerHTML = "Press 'z' to fast forward ;)"; divje.style.position = 'fixed'; divje.style.padding = '10px'; divje.style.top = '10px'; divje.style.left = '10px'; document.body.appendChild(divje);(some js based on script from varyform)secondhandvape12 years ago#My entire agile team is now impeded because of this game.noonespecial12 years ago#Oh! My productivity! It's like the "great sudoku disaster of '02" all over again!kyberias12 years ago#Simple and creative! I like it a lot.Load more commentsAll comments shown.Couldn't load more comments. Check your connection and try again.
2048 (opens in a new tab)gabrielecirulli.github.io2903 pointsby frederfred (on Hacker News)12 years ago
jozydapozy12 years ago#This script will give you a keyboard-shortcut to skip the 'boring beginning' of the game. Run it a few times to get a nice starting point:function arrows(key) { var eventObj = document.createEvent("Events"); eventObj.initEvent("keydown", true, true); eventObj.which = key; document.dispatchEvent(eventObj); }document.onkeypress = function (e) { e = e || window.event; if (e.charCode = 122) { for (y=0; y<=100; y++) { arrows(39); arrows(38); arrows(37); arrows(38); } } };var divje = document.createElement('div'); divje.innerHTML = "Press 'z' to fast forward ;)"; divje.style.position = 'fixed'; divje.style.padding = '10px'; divje.style.top = '10px'; divje.style.left = '10px'; document.body.appendChild(divje);(some js based on script from varyform)
noonespecial12 years ago#Oh! My productivity! It's like the "great sudoku disaster of '02" all over again!
Comments (410) 175 threads
Earlier commentsfunction arrows(key) { var eventObj = document.createEvent("Events"); eventObj.initEvent("keydown", true, true); eventObj.which = key; document.dispatchEvent(eventObj); }
document.onkeypress = function (e) { e = e || window.event; if (e.charCode = 122) { for (y=0; y<=100; y++) { arrows(39); arrows(38); arrows(37); arrows(38); } } };
var divje = document.createElement('div'); divje.innerHTML = "Press 'z' to fast forward ;)"; divje.style.position = 'fixed'; divje.style.padding = '10px'; divje.style.top = '10px'; divje.style.left = '10px'; document.body.appendChild(divje);
(some js based on script from varyform)
All comments shown.
Couldn't load more comments. Check your connection and try again.