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

Wrong bet #12

Closed comor closed 10 years ago

comor commented 10 years ago

In new version after 4,5 hours running bot tried to bet >100 BTC. Balance was 0.1 :)

comor commented 10 years ago

Forgot to mension. I used commented part of config.

KgBC commented 10 years ago

Could you pass me some lines of output? Never happened to me... and your config WITHOUT User/Password

comor commented 10 years ago

Nothing uncommon in output :/

KgBC commented 10 years ago

The config is this?

jdb_config = {
    "visible" : 1,
    "user" : "YOUR_USER",
    "pass" : "YOUR_PASSWORD",
    "lose_rounds": 27,
    "chance" : 49.5,
    "multiplier" : #rounds
    [ 3.0, 2.5, 2.0]+ #0,1,2 maximizes win
    [ 1.75 for x in range( 3, 7)]+ #3-6 win less every round
    [ 1.5 for x in range( 7,13)]+ #7-12 win less every round
    [ 1.1], # -lose_rounds covers parts of the loss
    "safe_perc" : 5.0,
    "auto-tip" : 1,
}

When did it happen - was it a losing streak? How often was the bet raised?

KgBC commented 10 years ago

And if I may ask: what was your balance and your expected bet / made bet (as exact as possible)

comor commented 10 years ago

config:

jdb_config = {
    "visible"    : 1,
    "user"       : "",
    "pass"       : "",
    "lose_rounds": 27,
    "chance"     : 49.5,
    "multiplier" :                           #rounds
            [ 3.0, 2.5, 2.0]+                #0,1,2 maximizes win
            [ 1.75 for x in range( 3, 7)]+   #3-6   win less every round
            [ 1.5  for x in range( 7,13)]+   #7-12  win less every round
            [ 1.1],                          # -lose_rounds covers parts of the loss
    "safe_perc"  : 5.0,
    "auto-tip"   : 0,
}

It happend after 1 lose. Ballance was 0.1 BTC, 1st bet ~0,000014.

KgBC commented 10 years ago

so we know, balance 0.1, bet >100 btc after one lose using the config above. First bet: 0,000014

So calculation for first bet: 0.1/3/2.5/(1.75_4)/(1.5_6)/(1.1_13) = 0.00001480001 First bet was correct as it seems. Second bet should be around 0.00001480_3 = 0.00004440, so why >100.0?

Let me review code and site behavior.

comor commented 10 years ago

It wasn't second bet - it was bet after few hours bots running. Starting balance was 0.1, during error balance also ~0.1.

KgBC commented 10 years ago

I just discovered an issue with calculation. please immediate update: https://github.com/KgBC/just-dice-bot/issues/13

I've no idea for now why it is doing such a high bid. next on release plan is logging, so with next version we could possibly track it down.

Closing here for now.

KgBC commented 10 years ago

logging implemented. please post log if something like that happens again. Log doesn't include user/pass. It does include all other parameters and bets.

If your logfile get's long cut it, but leave the settings and some bets before it failed there.