https://github.com/fredericheem/gamblacoin
Starter kit for a bitcoin dice game
https://github.com/fredericheem/gamblacoin
Last synced: about 1 year ago
JSON representation
Starter kit for a bitcoin dice game
- Host: GitHub
- URL: https://github.com/fredericheem/gamblacoin
- Owner: FredericHeem
- License: other
- Created: 2015-02-25T20:59:33.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-09-01T20:46:41.000Z (almost 7 years ago)
- Last Synced: 2025-02-16T04:19:59.389Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 221 KB
- Stars: 5
- Watchers: 4
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: history.md
- License: license.md
Awesome Lists containing this project
README
#GamblaCoin
*Gamblacoin* is a provably fair dice gaming site using Bitcoin as the main currency.
The gambler bets an amount of bitcoin and choose a multiplier, let's say 1 bitcoin and a multiplier of 4. The house then generates a random number between 0 and 100, if the number is below 25, the gambler wins 4 bitcoin, otherwise he loses the initial bet. The odd is winning is rougly below 1 out of 4. Now if the gambler choose a mutiplier of 10, any number below 10 would make a win, the odd would be below 1 out of 10.
Higher multiplier implies lower chance to win and vice and versa.
The user can independently verify that the bet was fair using cryptography. Before a new hand, the house gives to the gambler a cryptographic hash of the upcoming number, and he can use this information to verify after hand that the house hasn't cheat by changing the number to see.
Built with *nodejs* and *mongodb* on the backend, *backbone* and *bootstrap* on the frontend. Also include *socket.io* for real time notifications.
Tested with *mocha*
> Running and operaring this gaming web application is prohibited in almost any countries without a proper gaming license.