evenly

Project evenly is a simple javascript library to solve problem which is similar to how to divide the gold evenly?


Golds: Robbers: Fixed:

How to divide the gold evenly?

Install

npm install evenly 

Then import it.

// import library use script tag.
<script type="text/javascript" src="dist/evenly.min.js"></script>

// or ES6 style.
var evenly = require('evenly');

Usage

evenly(1000, 6); // 1000 golds to 6 robbers.
  

The code of evenly hosted on Github, click here. Welcome to issue or pull request.