A classic 2048 game built on AngularJS. It is based on the idea of a small clone of 1024.
This game requires NodeJS environment.
After you install NodeJS, run following command to install required dependencies, and you are ready to go.
$ npm install
Run following command to start the test server.
$ npm start
Then, open your browser and navigate to 'http://localhost:8123'
Run following command to test it.
$ npm test-single-run
This is an AngularJS application ready for deploying to any server.
First, run following command to generate deployment ready files.
$ gulp
You will find new files in 'dist' folder. Directly serve js and css files within that folder, and place following 'div' element which contains all contents of the game into your html file.
<div class="game" ng-include="'mainId.html'"></div>
Remember to bootstrap the page by adding ng-app into html tag as follow.
<html ... ng-app="2048App">
...
<html>
This repo is licensed under the MIT license.