A JavaScript Program to find out the amout of soldiers needed for a formation in rows of 7
Soldiers must line up in rows of two. After the line-up, one soldier remains. Even when competing in rows of three, four, five and six, one soldier remains. Only when they line up in rows of seven, there is no soldier left. The minimum number of soldiers needed must be determined.
These instructions will get you a copy of the project up and running on your local machine for development purposes. The project is not yet production-ready.
What things you need to install the software
- node.js - node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
- clone repo & cd into it
git clone https://github.com/niklasfrick/how-many-soldiers.git
cd how-many-soldiers
- install packages
npm install
- run dev environment
npm run dev
- open in browser
http://localhost:4000
- Make production-ready for deployment
- Webpack - A module bundler.
- Babel - The compiler for writing next generation JavaScript.
- Simple Grid - A simple, lightweight CSS grid
- SweetAlert - A beautiful replacement for JavaScript's "alert"