Install npm dependencies
npm install
The project is written in ES6 and is transpiled with Babel using Webpack. To start the development server
npm start
To build for production
npm run build
npm run deploy
from git bash admin rights
The most critical functions have unit tests, located in the /src/sketch.test.js
folder. To run the test suite with JEST run the command npm run test
.
As a little added bonus, if you load the game on a modern smartphone (iOS 4.2.1+, Android 4.0.3+) you can shake the phone to reset the application. After a while the cellular automation tends to reach a stable state so this is a way to disrupt it. Alternatively you can resize the screen or reload the page. To detect motion shake.js was used.