''2048'' is a single-player
sliding tile puzzle video game written by Italian web developer Gabriele Cirulli and published on
GitHub
GitHub, Inc. () is an Internet hosting service for software development and version control using Git. It provides the distributed version control of Git plus access control, bug tracking, software feature requests, task management, co ...
. The objective of the game is to slide numbered tiles on a grid to combine them to create a tile with the number 2048; however, one can continue to play the game after reaching the goal, creating tiles with larger numbers. It was originally written in
JavaScript
JavaScript (), often abbreviated as JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS. As of 2022, 98% of Website, websites use JavaScript on the Client (computing), client side ...
and
CSS
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone t ...
over a weekend, and released on 9 March 2014 as
free and open-source software
Free and open-source software (FOSS) is a term used to refer to groups of software consisting of both free software and open-source software where anyone is freely licensed to use, copy, study, and change the software in any way, and the source ...
subject to the
MIT License
The MIT License is a permissive free software license originating at the Massachusetts Institute of Technology (MIT) in the late 1980s. As a permissive license, it puts only very limited restriction on reuse and has, therefore, high license co ...
. Versions for
iOS and
Android
Android may refer to:
Science and technology
* Android (robot), a humanoid robot or synthetic organism designed to imitate a human
* Android (operating system), Google's mobile operating system
** Bugdroid, a Google mascot sometimes referred to ...
followed in May 2014.
''2048'' was intended to be an improved version of two other games, both of which were clones of the iOS game ''
Threes'' released a month earlier. Cirulli himself described ''2048'' as being "conceptually similar" to ''Threes''.
[ The release of ''2048'' resulted in the rapid appearance of many similar games, akin to the flood of '']Flappy Bird
''Flappy Bird'' is a mobile game developed by the Vietnamese video game artist and programmer Dong Nguyen ( vi, Nguyễn Hà Đông), under his game development company .Gears. The game is a side-scroller where the player controls a bird, attemp ...
'' variations from 2013. The game received generally positive reviews from critics, with it being described as "viral" and "addictive".
Gameplay
''2048'' is played on a plain 4×4 grid, with numbered tiles that slide when a player moves them using the four arrow keys. Every turn, a new tile randomly appears in an empty spot on the board with a value of either 2 or 4.[ Tiles slide as far as possible in the chosen direction until they are stopped by either another tile or the edge of the grid. If two tiles of the same number collide while moving, they will merge into a tile with the total value of the two tiles that collided.] The resulting tile cannot merge with another tile again in the same move. Higher-scoring tiles emit a soft glow;[ the highest possible tile is 131,072.
If a move causes three consecutive tiles of the same value to slide together, only the two tiles farthest along the direction of motion will combine. If all four spaces in a row or column are filled with tiles of the same value, a move parallel to that row/column will combine the first two and last two. A scoreboard on the upper-right keeps track of the user's score. The user's score starts at zero, and is increased whenever two tiles combine, by the value of the new tile.][
The game is won when a tile with a value of 2048 appears on the board. Players can continue beyond that to reach higher scores.] When the player has no legal moves (there are no empty spaces and no adjacent tiles with the same value), the game ends.
Strategy
Strategies in 2048 include keeping the highest tiles in a specific corner and to keep that tile in that corner and to fill the specified row with the highest numbers.
Development
Nineteen-year-old Gabriele Cirulli created the game in a single weekend as a test to see if he could program a game from scratch. "It was a way to pass the time", he said. He described it as being "conceptually similar" to the recently released iOS game ''Threes'',[ and a ]clone
Clone or Clones or Cloning or Cloned or The Clone may refer to:
Places
* Clones, County Fermanagh
* Clones, County Monaghan, a town in Ireland
Biology
* Clone (B-cell), a lymphocyte clone, the massive presence of which may indicate a pathologi ...
of another game, ''1024''. Developed by Veewo Studio, ''1024'' is itself a clone of ''Threes'', with its App Store description once reading "no need to pay for ''Threes''". Cirulli's README "\n\n\n\n\n\n''README.txt: A Memoir'' is a 2022 memoir by Chelsea Manning. It covers her early life, experience as a soldier in the U.S. Army, and life and imprisonment after she leaked classified information to WikiLeaks
WikiLeaks () is an ...
for ''2048'' cites another ''1024'' clone as influence: the homonymous but slightly different in terms of mechanics ''2048'' by Saming.
Cirulli was surprised when his weekend project received over 4 million visitors in less than a week. The game is free to play, Cirulli having said that he was unwilling to make money "from a concept that edidn't invent". He released ports for iOS and Android
Android may refer to:
Science and technology
* Android (robot), a humanoid robot or synthetic organism designed to imitate a human
* Android (operating system), Google's mobile operating system
** Bugdroid, a Google mascot sometimes referred to ...
in May 2014.
Adaptations
The simple controls allowed it to be used in a promo video for the Myo gesture control armband, and the availability of the code underneath allowed it to be used as a teaching aid for programming. The second-place winner of a coding contest at Matlab Central Exchange was an AI system that would play ''2048'' on its own. As the source code
In computing, source code, or simply code, is any collection of code, with or without comment (computer programming), comments, written using a human-readable programming language, usually as plain text. The source code of a Computer program, p ...
is available, many additions to the original game, including a score leaderboard, an undo feature, and improved touchscreen playability have been written by other people. All are available to the public.
Spinoffs have been released online and include versions with elements from the Doge meme
Doge (usually , or ) is an Internet meme that became popular in 2013. The meme typically consists of a picture of Kabosu, a Shiba Inu dog accompanied by multicolored text in Comic Sans font in the foreground. The text, representing a kind ...
, '' Doctor Who'', ''Flappy Bird'' and ''Tetris
''Tetris'' (russian: link=no, Тетрис) is a puzzle video game created by Soviet Union, Soviet software engineer Alexey Pajitnov in 1984. It has been published by several companies for multiple platforms, most prominently during a dispute o ...
''. There has also been a 3D version and versions with bigger or smaller grids. Cirulli sees these spinoffs as "part of the beauty of open source software" and does not object to them "as long as they add new, creative modifications to the game". In 2014, an unofficial clone of the game was published in the iOS app store by Ketchapp, monetized with advertising. There has also been a Doctor Who spinoff of the game, as well as one for the Nintendo 3DS
The is a handheld game console produced by Nintendo. It was announced in March 2010 and unveiled at E3 2010 as the successor to the Nintendo DS. The system features backward compatibility with Nintendo DS video games. As an eighth-generati ...
, which included a retail release.
Reception
The game has been described by ''The Wall Street Journal'' as "almost like '' Candy Crush'' for math geeks", and ''Business Insider'' called it "''Threes'' on steroids". Caitlin Dewey of ''The Washington Post
''The Washington Post'' (also known as the ''Post'' and, informally, ''WaPo'') is an American daily newspaper published in Washington, D.C. It is the most widely circulated newspaper within the Washington metropolitan area and has a large n ...
'' called it "a nerdy, minimalist, frustrating game", while ''The Independent
''The Independent'' is a British online newspaper. It was established in 1986 as a national morning printed paper. Nicknamed the ''Indy'', it began as a broadsheet and changed to tabloid format in 2003. The last printed edition was publishe ...
'' called it "addictive".[ The phenomenon of ''2048'' has been compared to that of ''Flappy Bird'' by several commentators. Both games' success, and their simplicity, led to the rapid creation of many variants, and both games have been described as "viral" and "very addictive".]
James Vincent of ''The Independent'' labeled ''2048'' as "a clone of a clone".[ In April 2014, '' Pocket Gamer'' reported that 15 new clones of ''Threes'' were released daily in the App Store.
When asked if he was concerned that his situation would end up as stressed as that of ]Nguyễn Hà Đông
DotGears Company Limited ( trade name: .Gears) is a Vietnamese video game developer based in Hanoi that specialises in mobile games. The company was founded in 2005 by Dong Nguyen, and is best known for developing the 2013 game ''Flappy Bird'' ...
, the creator of ''Flappy Bird
''Flappy Bird'' is a mobile game developed by the Vietnamese video game artist and programmer Dong Nguyen ( vi, Nguyễn Hà Đông), under his game development company .Gears. The game is a side-scroller where the player controls a bird, attemp ...
'', Cirulli said that he had "already gone through that phase" on a smaller scale, and that once he had decided against monetizing ''2048'', he "stopped feeling awkward."
In response to rampant cloning, the creators of ''Threes'' published a log of how the game evolved over its 14-month development cycle. They said they had tried and dismissed ''2048'' tile merging variant, because it made the game too easy. In a 2014 ''Wired
''Wired'' (stylized as ''WIRED'') is a monthly American magazine, published in print and online editions, that focuses on how emerging technologies affect culture, the economy, and politics. Owned by Condé Nast, it is headquartered in San Fran ...
'' article, they claimed to have each beaten ''2048'' on their first play.[
]
AI
The mathematical nature of 2048 has made the game of interest to AI researchers. As of 2022, AI achieved[ Additional results are o]
2048 analysis
page. over 95% (likely over 98%, but the measurement has noise) probability of making a 16384 tile, over 75% (likely over 80%) probability of making a 32768, and over 3% probability of making a 65536 (improving over the results in and [ Corresponding code is i]
). Due to randomness and lack of spare room, the optimal probability of making a 65536 tile is expected to be low; this is supported by optimal solutions for constrained boards.
2048 AI strategy uses expectiminimax, expectimax search up to a certain (variable) depth, plus transposition table
{{no footnotes, date=November 2017
A transposition table is a cache of previously seen positions, and associated evaluations, in a game tree generated by a computer game playing program. If a position recurs via a different sequence of moves, the ...
s to avoid duplication. Analogously to endgame tablebases, tables are used to estimate success (for building a large enough tile without destroying the configuration) in appropriate positions with many large tiles. A position evaluation function can favor empty squares, having a large number of merge possibilities, placement of larger tiles at the edge, and monotonicity for tile sizes, especially for larger tiles. The parameters are optimized by a search for better parameter values; some papers used temporal difference reinforcement learning.
References
External links
* {{Official website
Source code
on GitHub
GitHub, Inc. () is an Internet hosting service for software development and version control using Git. It provides the distributed version control of Git plus access control, bug tracking, software feature requests, task management, co ...
2014 video games
Android (operating system) games
Indie video games
IOS games
Nintendo 3DS games
Open-source video games
Puzzle video games
Single-player online games
Software using the MIT license
Video game clones
Video games developed in Italy
Tile-matching video games