/vue-2048

2048 game in Vue.js

Primary LanguageTypeScriptMIT LicenseMIT

live demo

Controls

  • Arrow keys

How to Play

Use the arrow keys to each time you can choose to slide in one of the directions of up, down, left, right, and slide. Every time you slide, all the number squares will move closer to the sliding direction, and the system will also randomly display a number square in the blank space. The squares with the same number are moving closer and colliding. will add up. Continuous superposition finally pieced together the number 2048, good luck!