For the first two items there are no dependencies. I used node v8.10.0
node ./rectangles
If the tests pass this is silent, so it is more useful to read the code than to run it.
node ./dice.js
Stop when you lose money: bad!
Stop when you run out of money: bad!
Take out a loan: bad!
For this problem I realized that the rules on how to finish betting we ambigious, so I ran it three ways:
- You stop once you loose more than the initial bet
- You stop when you run out of money
- You can go as negative as you want, and you stop after n iterations.
I stopped work on this to make time for other things. The results are currently not stable, you can run it multiple times and get different results.
I created a react app in ./currency-converter
using Create React App. Setup should be:
cd ./currency-converter;
npm install;
npm test;
npm start;
But with npm, you can never be certain :)