KgBC / just-dice-bot

Hi, this is a flexible betting bot for just-dice.com. Feel free to use it under GPL. If you want to donate some Beer/Satoshis: 1CDjWb7zupTfQihc6sMeDvPmUHkfeMhC83 Thanks. The ACES branch is considered stable, use this if you don't want to develop and do not need latest features: https://github.com/KgBC/just-dice-bot/tree/aces
GNU General Public License v2.0
18 stars 6 forks source link

satoshi loss on betting e.g. 11 satoshi's on a 90% chance #19

Closed KgBC closed 10 years ago

KgBC commented 10 years ago

just dice allows betting 11 satoshi on a 90% chance bet. if you win, you'll get 1 satoshi. so, if you bet 10 satoshi you'll get the same.

to avoid this, I am developing a rounding function, which calculates the nearest multiple of the bet. We may have some small rounding issues on the last round, but that's worth it :)

I'm about to test in a few minutes.

KgBC commented 10 years ago

version is up, please update