Giter VIP home page Giter VIP logo

2048's Introduction

2048

Puzzle game where players combine numbered on a grid to reach the 2048.

Brief description of how the game works:

The goal of 2048 is to combine numbered 4x4 grid to get the number 2048 in a single sell of the grid. The game begins with two numbers randomly placed on the grid, each with a value of either 2 or 4. Use the arrow keys (up, down, left, right), or the symbols ('a', 'w', 's', 'd') to slide all the numbers on the grid in one direction. When two numbers touch, they merge into one number with a value equal to the sum of the two numbers. The player lose the game if he try to slide the grid but there are no more empty spaces(the one that has 0 in them), or execute a move that do nothing but the grid is already full. This version of the game is a bit diffrent from the original because when you have for example a row with number { 2, 2, 2, 2 } and execudes a command left or right in that case you get the sum of the whole row: { 8, 0, 0, 0 } - for left, { 0, 0, 0, 8 } - for right. Another main diffrence from the original version is the addition of a number to the grid even if the last command from the user did not slide the grid.

2048's People

Contributors

dimitardtsonev avatar

Watchers

 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.