Skip to content

TJSteel/HeadsOrTails

Repository files navigation

HeadsOrTails

API for flipping a coin

To run this locally, you will need to run the following

npm i

npm start

Once running you can obtain the outcome of a coin flip by browsing to http://localhost:3000/flip

To test this and get the statistics, based on betting a value of 10, flipping a coin 10^6 times and always choosing heads, run

npm test

About

API for returning the outcome of a flipped coin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published