How to divide the gold evenly?
npm install evenly
Then import it.
evenly(1000, 6); // 1000 golds to 6 robbers.
The code of evenly hosted on Github, click here. Welcome to issue or pull request.