Skip to content

cschambacher/2048

Repository files navigation

2048

1. Live Site

https://myfun2048.herokuapp.com/

2. Background and Overview

2048 is a one player 2D sliding block puzzle game where blocks with numbers are combined to add their values.

The rules are that on each turn the player must choose a direction (up, down, left or right) and all tiles move as far as possible in that direction, some more than others. Two adjacent tiles (in that direction only) with matching numbers combine into one tile bearing the sum of those numbers. A move is valid when at least one tile can be moved, if only by combination. A new tile with the value of 2 is spawned at the end of each turn at a randomly chosen empty square, if there is one. To win the player must create a tile with the number 2048. The player loses if no valid moves are possible.

2048 is primarily built with JavaScript,React Html and CSS.

3. Functionality & MVP

  1. Hosting on Heroku ()

  2. Rendering the game (1 day)

  • setup
  • Grid and tiles
  1. Game logic (1 day)
  • game mouvement in one direction
  • game mouvement in four directions
  • game logic
  1. CSS styling (1 day)
  • game end and score
  • different colors for each type of tile
  • style and animation with canvas
  1. Production README ()

4.Technologies & Challenges

1. Architecture

2048 is built with JavaScript, React, Html and CSS.

2. Technical challenges:

  • CSS and canvas
  • Storing the score
  • Implementing the game rules

5. Work Breakdown

Feb 3rd & 4th -
game rendering

Feb 5th - game logic

Feb 6th - Styling and CSS

About

2D sliding block puzzle game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages