Pure JS write 2048 games, share the

Source: Internet
Author: User

These days play 2048 this game, suddenly whim want to practice the idea of tapping the code. So the imitation did a, to the current position has not realized the dynamic movement, not very good-looking, just play their own imitation of the small game or pretty cool, haha


If you have not played this game, it is best to try to play, so look at the code below to easy

The event is used. Temporarily does not support the Firefox play ...

Try >> Play


There are a lot of steps that are not easy to read. Please correct me.

The two-hour concept, the main idea of what form to save the form, and the use of several key methods, such as whether it is necessary to move, whether it is necessary to merge, move the method. Merge methods, and then start programming when you encounter a lot of problems, slowly solve the


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.