/how-many-soldiers

A JavaScript Program to find out the amout of soldiers needed for a formation in rows of 7

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

How many Soldiers?

Open Source Love Open Source Love PRs Welcome

A JavaScript Program to find out the amout of soldiers needed for a formation in rows of 7

Riddle:

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.

Getting Started

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.

Prerequisites

What things you need to install the software

  • node.js - node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

Dev environment setup

  1. clone repo & cd into it
git clone https://github.com/niklasfrick/how-many-soldiers.git
cd how-many-soldiers
  1. install packages
npm install
  1. run dev environment
npm run dev
  1. open in browser
http://localhost:4000

To-Dos

  • Make production-ready for deployment

Built With

  • 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"