Home / Articles / Chapter 01
Chapter 01 · Origins

March 2014: the weekend Gabriele Cirulli invented 2048

How a 19-year-old Italian developer coded 2048 in a weekend and released it as open source on 9 March 2014, sparking a worldwide phenomenon.

248163264128256512

Some games are born in studios of several hundred people, after years of production and nine-figure budgets. And then there is 2048: a game coded over a weekend by a 19-year-old Italian developer, released for free on the Internet on a Sunday in March 2014, with no advertising, no marketing plan and not even the intention of making it a hit. A few days later, millions of people were sliding numbered tiles across their screens at the office, on the train and in class. Here is the story of how a phenomenon began, one that redefined what a "small game" could achieve.

A 19-year-old Italian developer

In early 2014, Gabriele Cirulli is a young Italian web developer. He is not a game designer by trade: he builds websites, writes JavaScript, HTML and CSS, and approaches programming like many developers of his generation, as a curious self-learner who learns by building. As he would later explain in several interviews, he mostly wanted to check one thing: could he program a complete game, from start to finish, on his own?

This starting point is key to understanding 2048. The project was not born from market research or commercial ambition. It was a personal exercise, a technical challenge a developer set for himself in order to learn. That lack of calculation runs through the game's whole DNA: no account to create, no virtual currency, no endless welcome screen. You arrive and you play.

The context: a winter of number puzzles

Cirulli did not start from nothing. Early 2014 saw a small wave of excitement around number-based puzzle games. On 6 February 2014, Threes! was released on iPhone, a game designed by Asher Vollmer and Greg Wohlwend in which you slide numbered cards to add 1s and 2s, then merge multiples of 3. Critics loved it. Variants quickly followed: 1024, published by the studio Veewo, then a first game called "2048" made by a developer known as Saming, itself inspired by 1024.

This is the soil in which Cirulli discovered the mechanic. He found the concept fascinating but thought he could offer a cleaner version, playable directly in a web browser with nothing to install. He got to work.

The weekend that changed everything

The legend, confirmed by Cirulli himself, is that most of the game was developed in a single weekend. The technical choices were deliberately simple: HTML for structure, CSS for looks and animations, JavaScript for the logic. No game engine, no heavy library. The code fits in a few files that any web developer can read and understand.

The principle he implemented fits in a few lines:

  • a grid of 4 by 4 cells;
  • at the start, two tiles appear, worth 2 or 4;
  • on each move, the player slides every tile in one direction (up, down, left, right);
  • two tiles of the same value that meet merge, and their values add up: 2 + 2 = 4, 4 + 4 = 8, and so on;
  • after each move, a new tile (usually a 2, sometimes a 4) appears in an empty cell;
  • you win by making the 2048 tile, and lose when the grid is full with no merge possible.

What stands out is the restraint. Where Threes! moved cards one cell at a time and played with a gallery of expressive characters, Cirulli chose tiles that slide all the way across the grid, and a minimalist look in beige and orange tones. Each value has its own colour, warmer as the numbers grow. A small "pop" animation accompanies each merge, and the score ticks up with a light floating effect. That's all. And it is enough.

The genius of 2048 is not that it invented a mechanic, but that it found the purest, most accessible and most instantly addictive form of an idea that was already in the air.

A note of honesty in the footer

An often forgotten detail: from its very first version, the game's page credited its inspirations. The footer stated that the game was based on 1024 by Veewo Studio and conceptually similar to Threes. Cirulli never claimed to have invented merging numbers on a grid. That transparency would not prevent controversy, which we cover in another article, but it reflects the spirit of the project: a technical tribute, openly shared.

9 March 2014: going live

The game was released on 9 March 2014. Cirulli put the source code on GitHub under the MIT licence, one of the most permissive open-source licences there is: anyone can copy, modify and redistribute the code, including for commercial purposes, as long as the copyright notice is kept. He hosted the playable version on GitHub Pages and shared the link.

Choosing open source would have huge consequences. By releasing his code freely, Cirulli did not just publish a game: he published a template. A clean, readable template that thousands of developers could clone in one click to create their own variants. This is one of the keys to how 2048 spread, as we will see.

Hacker News, Reddit and the snowball effect

The link first circulated in developer communities, notably on Hacker News, the widely read forum run by the Y Combinator accelerator. It was the ideal audience: people who spend their days in a browser, who appreciate elegant, simple code, and who have outsized influence on the rest of the Internet. The game climbed the rankings, then spilled over to Reddit, Twitter and Facebook.

Cirulli himself would explain that he was completely overwhelmed by the scale of it. According to the figures he shared, the site received more than 4 million visitors in less than a week. For a weekend project, hosted for free and made without any budget, that is staggering.

Did you know?The original 2048 code is one of the most forked game repositories in GitHub's history. Tens of thousands of developers have copied it to study it, modify it or create their own version.

Why it worked: anatomy of a hit

The reasons for 2048's success have been analysed at length. Several factors came together at the right moment.

1. Total accessibility

2048 runs in a browser. No App Store, no download, no sign-up. A link is enough. The rules can be understood in ten seconds without a tutorial: press an arrow, the tiles move, two identical numbers merge. Even people who "don't play video games" got hooked, just as they had with Solitaire or Minesweeper years earlier.

2. The "just one more game" format

A game lasts from a few minutes to half an hour. It can be interrupted and resumed. Every loss feels like you have understood something and will do better next time. The "Try again" button is right there. That short loop is remarkably effective.

3. A clear, symbolic goal

The number 2048 is not chosen at random: it is 211, a power of two familiar to programmers (2,048 bytes, 2 KB), and a goal distant enough to require strategy yet close enough to seem reachable. The game's title is its goal. It could not be clearer.

4. Sensory satisfaction

The smooth slide of the tiles, the little bounce on each merge, the progression of colours: everything is designed to deliver a micro-reward with every move. It is subtle, but it gives the game its pleasant "texture".

5. Sharing and competition

The score is always on display, next to the best score. Players started posting screenshots of their grids, comparing records and challenging each other. At a time when social networks were booming, a game whose result fits in one image was perfectly suited to going viral.

After the buzz: what became of the creator?

Faced with this success, Cirulli took a stance that surprised many: he did not try to cash in heavily. In interviews at the time, he explained that he had not made the game to earn money and did not feel it was right to profit from a concept he had not invented. He would later release official mobile versions, but most of the 2048 ecosystem grew without him, through thousands of clones and variants.

The irony: meanwhile, other publishers, far less scrupulous, released their own "2048" apps on mobile stores within days and racked up millions of downloads. Cirulli's game became a common good, for better and for worse.

Gabriele Cirulli went on to pursue a career in development and entrepreneurship. But for millions of players, his name will forever be linked to that weekend in March 2014, when a young developer wanted to know whether he could code a game… and accidentally created one of the most played puzzles of the decade.

The legacy of a weekend

More than ten years after its release, 2048 has not disappeared. It has become a classic, like Tetris, Minesweeper or Sudoku: a game everyone knows, that gets passed on and reinvented. It exists on every platform, in hundreds of variations. It is used as an exercise in coding schools, as a testbed for artificial intelligence research, and as a pastime for millions of players.

Its story also carries lessons that go beyond games:

  • Simplicity is a strength. A clean concept, well executed, can reach a much wider audience than a complex production.
  • Openness accelerates everything. By publishing his code as open source, Cirulli multiplied his game's reach.
  • Ideas travel. 2048 is one link in a chain of inspirations (Threes, 1024, Saming's 2048) and has itself inspired thousands of creations.

This tradition of reinvention is exactly where 2048 Deluxe fits in. Our version keeps the elegance of the original mechanic and takes it further: a 5 × 5 grid for longer, more strategic games, 10 levels of progression, power-ups to escape desperate situations and badges to collect. A tribute to that weekend in 2014, and an invitation to rediscover the joy of sliding tiles.

Ready to write the next chapter? Start a game of 2048 Deluxe: the site automatically detects whether you are on a computer or a phone.

Sources