Skip to content

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

License

Notifications You must be signed in to change notification settings

niklasfrick/how-many-soldiers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published