Hacker GitHub

← All repos

gabrielecirulli/2048

View on GitHub ↗ ★ 13,459 JavaScript

The source code for 2048

15 mentions on Hacker News by 15 people: 2 stories, 13 comments · first 2014-03-10 · latest 2024-09-29

Mentions per year 15 mentions · busiest year 2014 (9)
20082026
  1. ▲ 2
    Open-Source 2048: Play, Customize, and Learn from the Classic Puzzle Game
    story by HoloShift · 2024-09-29 · 0 comments
  2. …hacked it to 4096 with a 5x5 layout so I could play longer. :) EDIT: I think I took this project: https://github.com/gabrielecirulli/2048 and modified it
    comment by m463 · 2023-11-01 · in The beauty of finished software
  3. …(if it's just a text one) in new tabs. 1. https://gabrielecirulli.github.io/hn-special/ 2. https://github.com/gabrielecirulli/2048
    comment by flanbiscuit · 2022-09-08 · in Show HN: I made a modern web UI for Hacker News
  4. …sizes <1MB https://github.com/xmrig/xmrig/releases edit: apparently the actual game is based on https://github.com/gabrielecirulli/2048 which is HTML+JS, so probably the Snap was bundling in Chromium/Electron, which explains the size.
    comment by zokier · 2018-05-12 · in Malware Found in the Ubuntu Snap Store
  5. I like the structure of the game 2048 https://github.com/gabrielecirulli/2048 and I think it will be highly instructive for you since it implements the MVC pattern without using a framework, and you want to be framework agnostic. 2048 is…
  6. You mean this? https://github.com/gabrielecirulli/2048
    comment by gee_totes · 2015-04-07 · in Three.js – JavaScript 3D library
  7. ▲ 1
    2048 game source code
    story by FranklinGeorge · 2014-07-11 · 0 comments
  8. It's exactly the same under the hood as Gabriele's original 2048 from https://github.com/gabrielecirulli/2048
    comment by themadcreator · 2014-04-06 · in 2048 in 3D
  9. …date, it should be strictly after 2014-03-13 (as CSS transforms were added to 2048's repo that day https://github.com/gabrielecirulli/2048/commit/7c6fd1b2a4acb... ), and from there, test the apps. I rewrote the whole game's code as an…
  10. …about a week after that. [1] http://www.theverge.com/2014/2/6/5361708/threes-ipad-iphone-... [2] https://github.com/gabrielecirulli/2048/commit/f4d95b66723cd...
    comment by mbrubeck · 2014-03-23 · in 2048: The Nihilistic Face Of Free To Play
  11. I submitted a pull request The original source is here: https://github.com/gabrielecirulli/2048/blob/master/js/game_... (line 62)
    comment by shawabawa3 · 2014-03-14 · in 2048 in the terminal
  12. The new tiles are only 2 (90%) and 4 (10%). From the source https://github.com/gabrielecirulli/2048/blob/master/js/game_... // Adds a tile in a random position GameManager.prototype.addRandomTile = function () { if…
    comment by gus_massa · 2014-03-14 · in 2048 x 2 = 4096
  13. …every solution like an algorithm without ever losing. var value = Math.random() < 0.9 ? 2 : 4; https://github.com/gabrielecirulli/2048/blob/master/js/game_...
    comment by jsmthrowaway · 2014-03-11 · in 2048
  14. …probably the last of a long chain of clones :P The code is also open-source. You can find it here: https://github.com/gabrielecirulli/2048 Feel free to ask me anything, and thanks to everyone for the attention! :) By the way, my highscore…
    comment by terabytest · 2014-03-10 · in 2048
  15. The source code's here, in case anyone is interested: https://github.com/gabrielecirulli/2048
    comment by dergachev · 2014-03-10 · in 2048