https://github.com/birajcoder/game-2048
The famous 2048 game, recreated using Python
https://github.com/birajcoder/game-2048
coding-challenge game python
Last synced: 8 months ago
JSON representation
The famous 2048 game, recreated using Python
- Host: GitHub
- URL: https://github.com/birajcoder/game-2048
- Owner: BirajCoder
- Created: 2022-02-06T20:03:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-17T06:50:08.000Z (almost 3 years ago)
- Last Synced: 2025-02-24T00:41:23.028Z (over 1 year ago)
- Topics: coding-challenge, game, python
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# THE 2048 GAME
2048 is played on a gray 4×4 grid, with numbered tiles that slide 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. 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.
## Images of the Code
Initial Image:

Final Image:
