Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 2.86 KB

README.md

File metadata and controls

23 lines (14 loc) · 2.86 KB

2048 (Video Game)

==================================================================================================================================

Description

2048 is a single-player puzzle game created in March 2014 by 19-year-old Italian web developer Gabriele Cirulli, in which the objective is to slide numbered tiles on a grid to combine them and create a tile with the number 2048. It can be regarded as a type of sliding block puzzle, and is very similar to the Threes! app released a month earlier.

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". Due to the massive popularity of 2048, many people now mistakenly believe Threes! to be a clone of it, rather than the other way around. The fact that the game runs on open-source code has led to many additions to the original game, including a score leaderboard and improved touchscreen playability. Spinoffs have been released online, as apps and for the Nintendo 3DS, and include versions with elements from Doge, Doctor Who, Flappy Bird and Tetris; there has also been a 3D version[4] and ones with bigger or smaller grids. Cirulli sees these 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".

Gameplay

2048 is played on a simple gray 4×4 grid, with numbered tiles that slide smoothly when a player moves them using the four arrow keys. Every turn, a new tile will randomly appear 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.

A scoreboard on the upper-right keeps track of the user's score. The user's score starts at zero, and is incremented whenever two tiles combine, by the value of the new tile. As with many arcade games, the user's best score is shown alongside the current score.

The game is won when a tile with a value of 2048 appears on the board, hence the name of the game. After reaching the target score, players can continue in a sandbox mode that continues beyond 2048. The maximum possible tile is 131,072 (or 2^17); the maximum possible score is 3,932,156; the maximum number of moves is 131,038. When the player has no legal moves (there are no empty spaces and no adjacent tiles with the same value), the game ends.

REFERENCES

  1. http://gabrielecirulli.github.io/2048/
  2. http://2048strategy.com/
  3. http://en.wikipedia.org/wiki/2048_(video_game)
  4. https://inst.eecs.berkeley.edu/~cs61b/fa14/hw/proj0.pdf