loicsikidi / 2048

Implementation of the 2048 in node using functional programming pattern

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2048

The perpus of this project is to implement, the minimalist game: 2048. After the introduction of functional programming, I needed a playground to manipulate its concepts. Knowing that JS handle natively some part of functionnal programming feature, I've used this language.

The project is self-supporting which means that none external librairy is used. The project doesn't need to be build to work.

What I Learned

  • Use functionnal programming paradigm
  • Use none librairy, only vanilla code
  • Decorrelate the game mechanism from the render
  • & much more

Usage

git clone git@github.com:LoicSikidi/2048.git
cd 2048
npx open web.html
  • Use arrow keys, wasd or zqsd to move the grid
  • Try to merge squares of same values to reach 2048!

Next steps (nice to have)

  • add unit tests
  • add animations in the front layer

About

Implementation of the 2048 in node using functional programming pattern


Languages

Language:JavaScript 73.5%Language:CSS 21.1%Language:HTML 5.3%