Giter Site home page Giter Site logo

2048's Introduction

2048


About

This is a game of 2048. In this game, you can press W, S, A or D to move those numbers in the square. When two numbers are equal, computer adds them to get a new number. When the highest number in the square more than the difficulty, you win. If those numbers can't move any more, you lose the game. You also can see the highest score by choosing the item of main menu.


Usage

If you are using Linux, the Makefile is in the folder 2048. You can use make to compile program. (Makefile is only for Linux.) If you are using Windows, we don't provide the Makefile. You can use VS 2017. (If you have.) Remember to change the flag in statement.h :

#define FLAG
#ifdef FLAG
#define Linux
#else
#define Windows
#endif

Add "//" to define or undefine FLAG.


Copyright

This is a free and open source software. See more in LICENSE. Copyright © 2018 Justin Chen.


Functions

1.Three menus

There are three menu in the game. The first menu is main menu. You can start the game, see the highest score or quit by choosing items. the item. The second one is difficulty chooser menu. And the last one is sub menu. If you are playing game, you can use the sub menu to quit.

2.Difficulty to choose

If you feel easy to play the game, you can use the difficulty chooser menu to choose difficulty.

3.Get highest score

You can see the highest score after you played the game. If you break the recoad, the number will change.

4.Fonts with colors

In the game, all of the fonts are colorful.

2048's People

Contributors

oo-infty avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.