2048 (video Game)
   HOME

TheInfoList



OR:

''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, continuous ...
. 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 websites use JavaScript on the client side for webpage behavior, of ...
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 techno ...
over a weekend, and released on 9 March 2014 as free and open-source software 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 comp ...
. Versions for
iOS iOS (formerly iPhone OS) is a mobile operating system created and developed by Apple Inc. exclusively for its hardware. It is the operating system that powers many of the company's mobile devices, including the iPhone; the term also include ...
and Android 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 ''Threes'' (stylized as ''Threes!'') is a puzzle video game by Sirvo, an independent development team consisting of game designer Asher Vollmer, illustrator Greg Wohlwend, and composer Jimmy Hinson. The game was released on February 6, 2014, for ...
'' 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 iOS (formerly iPhone OS) is a mobile operating system created and developed by Apple Inc. exclusively for its hardware. It is the operating system that powers many of the company's mobile devices, including the iPhone; the term also include ...
game ''Threes'', and a clone 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 In software development, a README file contains information about the other files in a directory or archive of computer software. A form of documentation, it is usually a simple plain text file called README, Read Me, READ.ME, README.TXT, R ...
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 iOS (formerly iPhone OS) is a mobile operating system created and developed by Apple Inc. exclusively for its hardware. It is the operating system that powers many of the company's mobile devices, including the iPhone; the term also include ...
and Android 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 comments, written using a human-readable programming language, usually as plain text. The source code of a program is specially designed to facilitate the w ...
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, ''
Doctor Who ''Doctor Who'' is a British science fiction television series broadcast by the BBC since 1963. The series depicts the adventures of a Time Lord called the Doctor, an extraterrestrial being who appears to be human. The Doctor explores the u ...
'', ''Flappy Bird'' and ''
Tetris ''Tetris'' (russian: link=no, Тетрис) is a puzzle video game created by Soviet software engineer Alexey Pajitnov in 1984. It has been published by several companies for multiple platforms, most prominently during a dispute over the appro ...
''. 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 Ketchapp SARL is a French video game publisher based in Paris, specializing in the mobile games market. Founded in 2014 by brothers Antoine and Michel Morcos, the company first came into the public eye later that year, through its port of the ...
, monetized with advertising. There has also been a Doctor Who spinoff of the game, as well as one for the Nintendo 3DS, which included a retail release.


Reception

The game has been described by ''The Wall Street Journal'' as "almost like ''
Candy Crush ''Candy Crush Saga'' is a free-to-play tile-matching video game released by King on April 12, 2012, originally for Facebook; other versions for iOS, Android, Windows Phone, and Windows 10 followed. It is a variation of their browser game ''Ca ...
'' 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 nati ...
'' 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 publis ...
'' 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, 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 ...
'' 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 tablebase An endgame tablebase is a computerized database that contains precalculated exhaustive analysis of chess endgame positions. It is typically used by a computer chess engine during play, or by a human or computer that is retrospectively analysin ...
s, 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, continuous ...
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