Share 2048 game code in HTML, CSS and Vanilla JS
Please log in to your account to download
3.9
0 Reviews
195
Views
Information
2048 plays on a 4Ã4 square grid. Each move is a turn, the player uses the arrow keys and the blocks will slide in one of four corresponding directions (up, down, left, right). Each turn, a block with a value of 2 or 4 will appear randomly in an empty cell on the grid. The blocks slide in the specified direction until they reach the edge of the grid or touch another block. If two square blocks of the same value touch each other, they will combine to form a square whose value is equal to the total value of those two squares (double value).
Review
No items found.