Pages:
Author

Topic: Seuntjie' Dice bot programmers mode discussion. - page 16. (Read 125483 times)

legendary
Activity: 1007
Merit: 1000
I hope someone can help me with my script or my idea.
Im totaly new to this :/

I would like to

1. roll the dice with basebet 0.00000001 Chance 49.5%
2. After 4 Wins (not especially in a row) -> nextbet 0.00001000
3. If bet lost = previousbet*2 (repeat 6x times if its still a loosing bet. After 6x losses in a row go back to basebet),
    if bet won nextbet = basebet (0.00000001)
4. Stop after target = 0.00010000


I tried something like that... but well its not doing what i want it to do Cry

Code:
startbalance=balance

function dobet()

chance=49.50
basebet=0.00000001

if win then
wincounter +=1
end

if wincounter>3 then
wincounter=0
nextbet = 0.00001000    <-- #Don´t know why he is not doing this bet Bot jumps to #A or #B

if balance > startbalance then
nextbet = basebet  <-- #A
else
nextbet=previousbet*2 <-- #B
end

if currentstreak%6==0 then <-- to avoid loosing strikes but somehow its also not working :/
nextbet=basebet
end
end

also the part with the target is missing... that the bot should stop after he reaches  0.00010000

I hope you can help me ... im totaly new to this .. Thanks

   You look close...   Lua is not the best at telling you whats wrong.  I think the whole problem is you didn't define wincounter.  Before the function statement add wincounter = 0.  Also add nextbet = .00000001 and chance = 49.5

   The very first bet is rolled before the function is called, so you need to set that up. 

You could actually move the lines of code you only need to set once up there. 

 
legendary
Activity: 1007
Merit: 1000
anyone can tell me what are doing this command lines?

if (randomHighLow) then
if (math.random() < .0237) then bethigh = !bethigh end


if script are using only in bethigh mode?! i think nothing, right?

and why there is some 0.0237? any clue?!

randonHighLow must be a true/false variable.  If it's true then generate a random number between 0 and 1.  So .0237 is 2.37%, so 2.37% of the time switch between betting high and low.   
full member
Activity: 319
Merit: 100
anyone can tell me what are doing this command lines?

if (randomHighLow) then
if (math.random() < .0237) then bethigh = !bethigh end


if script are using only in bethigh mode?! i think nothing, right?

and why there is some 0.0237? any clue?!
newbie
Activity: 3
Merit: 0
I have read in a different topic yesterday, that the rule of the average sum applies to random generators. I checked it myself and so far it turns to be correct. The average number from hundreds, thousands, ten thousands rolls is between 49 and 51 with slight exceptions regarding the hundreds. I am not a programmer myself, but is it possible a script to be written, which analyzes the last 50 rolls for example and if the average is displaced from its center ( which we accept that is 50) to start betting on the other side until balance is reached. Not quite sure I am explaining myself clearly... if you have average of 40 you start betting high until you get to 49 for example. Hope you understand what I mean. Not sure is it a possible task either. Anyways it is a fresh idea worth checking it I believe.
Cheers.
legendary
Activity: 1717
Merit: 1125
For those that are not aware (Which I guess is most of you, I haven't posted any documentation about it), a few versions ago I added a site object to the programmer mode that contains details of the site you're currently logged in to in the bot. The "site" object is of type SiteDetails:

Code:
public class SiteDetails
        {
            public string name { get; set; }
            public decimal edge { get; set; }
            public decimal maxroll { get; set; }
            public bool cantip { get; set; }
            public bool tipusingname { get; set; }
            public bool canwithdraw { get; set; }
            public bool canresetseed { get; set; }
            public bool caninvest { get; set; }
            public string siteurl { get; set; }
        }

You can use the details to determine whether or not you should try to tip/withdraw, what calculate chance/payout accurately etc. I will at some point implement functions for calculating chance/payout and similar functions to the object as well, but I have no ETA for that.


An example of using the object:
Code:
print('You\'re betting on ' + site.name)
payout = (100.0-site.edge)/chance
if bethigh then
 betwin = lastBet.Roll>(site.maxroll-chance)
else
 betwin = lastBet.Roll<(chance)
end
if site.cantip then
 if site.tipusingname then
  tip('seuntjie',1)
 else
  tip('91380',1)
 end
else if site.canwithdraw then
 withdraw('address',1)
end
HCP
legendary
Activity: 2086
Merit: 4363
No No
So regular bet is for example martingale 1sat 49.5 and 100% increase on loose
i there will be 2 over 99% in the row i wish to bet 10% of the balance opposite direction on 99%chance as there is low chance of getting the third one.
So the script should monitor for >99 and <1 and act if there is 2 in the row.
than it should count how many of this hi or low strikes was and let say after 5 it should bet only if there is the row of 3
Ahhhh ok, yeah... that makes way more sense! Wink

You're looking for clusters of <1 or >99 rolls... and then wager 10% of current balance on the opposite, hoping you don't get 3x "<1" or ">99" rolls in a row.

But you're also wanting to count these clusters... so after 5 clusters, change so you only bet 10% if there were 3x "<1" or ">99" rolls..


well almost
it looks like it waits one bet before the correct bet i do not know why?
anyone knows why after 2 bets i am looking it does 3rd bet on 49.5% and then it does the 99% bet instead o directly after?
It's because the check for highCount >= 2 is effectively being done BEFORE the checking of the previous roll...

so, what is happening is that the script is checking if highCount >= 2... then it actually checks the previous roll and increments the count... it should be the other way around and increment first and then check... like this:

Code:
basebet=0.00000001
nextbet=basebet
chance=49.5

highCount=0
lowCount=0
previousbetBackup=basebet

function dobet()

    if lastBet.Roll > 99 then
        highCount = highCount+1
    else
        highCount = 0
    end

    if lastBet.Roll < 1 then
        lowCount = lowCount+1
    else
        lowCount = 0
    end

    if highCount >= 2 then
        bethigh = false
        nextbet = balance * 0.1
        chance=99.0
    else if lowCount >= 2 then
        bethigh = true
        nextbet = balance * 0.1
        chance=99.0
    else
        chance=49.5

        if win then      
            nextbet = basebet
        else  
            nextbet = previousbetBackup*2
        end
previousbetBackup = nextbet
    end

end
newbie
Activity: 31
Merit: 0
well almost
Code:
basebet=0.00000001
nextbet=basebet
chance=49.5

highCount=0
lowCount=0
previousbetBackup=basebet

function dobet()

if highCount >= 2 then
bethigh = false
nextbet = balance * 0.1
chance=99.0
else
if lowCount >= 2 then
bethigh = true
nextbet = balance * 0.1
chance=99.0
else
chance=49.5

if win then      
  nextbet = basebet
else  
  nextbet = previousbetBackup*2
end

previousbetBackup = nextbet
end
end

if lastBet.Roll > 99 then
highCount = highCount+1
else
highCount = 0
end

if lastBet.Roll < 1 then
lowCount = lowCount+1
else
lowCount = 0
end
end
it looks like it waits one bet before the correct bet i do not know why?
anyone knows why after 2 bets i am looking it does 3rd bet on 49.5% and then it does the 99% bet instead o directly after?
newbie
Activity: 31
Merit: 0
I think 99% bets are not even allowed on most sites right?
I think you got it back to front... and they're wanting to wager 10% if there are 2 rolls in a row under 1 or above 99... then wager on the 1% chance bets... not on the 99% chance bets Wink

ie.

Roll 1 = 0.74
Roll 2 = 0.87
Roll 3 = wager 10% of balance on chance = 1, bethigh = false (ie. bet low)

or

Roll 1 = 99.4
Roll 2 = 99.87
Roll 3 = wager 10% of balance on change = 1, bethigh = true (ie. bet high)

No No
So regular bet is for example martingale 1sat 49.5 and 100% increase on loose
i there will be 2 over 99% in the row i wish to bet 10% of the balance opposite direction on 99%chance as there is low chance of getting the third one.
So the script should monitor for >99 and <1 and act if there is 2 in the row.
than it should count how many of this hi or low strikes was and let say after 5 it should bet only if there is the row of 3


HCP
legendary
Activity: 2086
Merit: 4363
I think 99% bets are not even allowed on most sites right?
I think you got it back to front... and they're wanting to wager 10% if there are 2 rolls in a row under 1 or above 99... then wager on the 1% chance bets... not on the 99% chance bets Wink

ie.

Roll 1 = 0.74
Roll 2 = 0.87
Roll 3 = wager 10% of balance on chance = 1, bethigh = false (ie. bet low)

or

Roll 1 = 99.4
Roll 2 = 99.87
Roll 3 = wager 10% of balance on change = 1, bethigh = true (ie. bet high)
hero member
Activity: 813
Merit: 507
Sorry I was not asking f it is possible to win or not
I was asking how to write the script that will
bet normal martingale but in the same time will count i there are rolls above 99% or below 1% in the row and if they are 2 will place the bet below or above of 10% o the balance not interrupting the main strategy?
It would be nice i fit was counting also how many strikes like that was there already and if there was 5
change minimal row to 3?
Please
Anyone know how to do that?
 

I did no testing so there might be errors.
Use it at your own risk and you might want to adjust the percentages based on your dice site.
I think 99% bets are not even allowed on most sites right?

Code:
basebet=0.00000001
nextbet=basebet
chance=49.5

highCount=0
lowCount=0
previousbetBackup=basebet

function dobet()

if highCount >= 2 then
bethigh = false
nextbet = balance * 0.1
chance=99.0
else
if lowCount >= 2 then
bethigh = true
nextbet = balance * 0.1
chance=99.0
else
chance=49.5

if win then     
   nextbet = basebet
else   
   nextbet = previousbetBackup*2
end

previousbetBackup = nextbet
end
end

if lastBet.Roll > 99 then
highCount = highCount+1
else
highCount = 0
end

if lastBet.Roll < 1 then
lowCount = lowCount+1
else
lowCount = 0
end
end
newbie
Activity: 31
Merit: 0
Any help welcome how to make a script hunting or row of numbers below or above?
newbie
Activity: 31
Merit: 0
Sorry I was not asking f it is possible to win or not
I was asking how to write the script that will
bet normal martingale but in the same time will count i there are rolls above 99% or below 1% in the row and if they are 2 will place the bet below or above of 10% o the balance not interrupting the main strategy?
It would be nice i fit was counting also how many strikes like that was there already and if there was 5
change minimal row to 3?
Please
Anyone know how to do that?
 
full member
Activity: 319
Merit: 100
Hi
I am looking for a script that inside normal martingale will monitor for for the numbers and bet if they will show twice in the row?
So for example we do have normal 50% strategy with 100% on loose but if there will be 2 in the row below 1% it will bet 10% of balance below 1% and if it is above 99% it will bet 10% of balance above 99%?
Is the idea explained correctly?


Doesnt seem that hard to accomplish but just for your interest, waiting for these kind of patterns doesnt change your odds.

It's the same as prerolling. You will only bet after your pattern occured which makes you bet less often and will only postpone the possible loss.

please don't write your pessimistic stuff all the time.



you all people are angry because losed alot of money in dice, and now are saying to all other peoples, that there is no strategy to beat it(because you don't have enought knowledge to figure out it), that is why you all are doing it?! Cheesy Cheesy Cheesy


otherwise i dont understand all you pesimists.

Cant remember saying something similar here but ok. I just tried to prevent someone from thinking that these kind of bets change something (I am fine with it as long as it is for fun purposes).

I think I am currently in a plus on primedice Smiley but you cant possibly think that there is a winning strategy which will gain you profit over an inifinte amount of time, are you?


on how much bets you are in +?

there is difference between words "think" and allmoust "know" Wink

how much amount of bets you want like proof of profitable playing?!

after some time, if i will not be lazy, i will make a some kind of "forum blog" for all you who thinking in your way.
newbie
Activity: 31
Merit: 0
Yes i know it all but i think it is worth to try?
So how this script could look like?
hero member
Activity: 813
Merit: 507
Hi
I am looking for a script that inside normal martingale will monitor for for the numbers and bet if they will show twice in the row?
So for example we do have normal 50% strategy with 100% on loose but if there will be 2 in the row below 1% it will bet 10% of balance below 1% and if it is above 99% it will bet 10% of balance above 99%?
Is the idea explained correctly?


Doesnt seem that hard to accomplish but just for your interest, waiting for these kind of patterns doesnt change your odds.

It's the same as prerolling. You will only bet after your pattern occured which makes you bet less often and will only postpone the possible loss.

please don't write your pessimistic stuff all the time.



you all people are angry because losed alot of money in dice, and now are saying to all other peoples, that there is no strategy to beat it(because you don't have enought knowledge to figure out it), that is why you all are doing it?! Cheesy Cheesy Cheesy


otherwise i dont understand all you pesimists.

Cant remember saying something similar here but ok. I just tried to prevent someone from thinking that these kind of bets change something (I am fine with it as long as it is for fun purposes).

I think I am currently in a plus on primedice Smiley but you cant possibly think that there is a winning strategy which will gain you profit over an inifinte amount of time, are you?
full member
Activity: 319
Merit: 100
Hi
I am looking for a script that inside normal martingale will monitor for for the numbers and bet if they will show twice in the row?
So for example we do have normal 50% strategy with 100% on loose but if there will be 2 in the row below 1% it will bet 10% of balance below 1% and if it is above 99% it will bet 10% of balance above 99%?
Is the idea explained correctly?


Doesnt seem that hard to accomplish but just for your interest, waiting for these kind of patterns doesnt change your odds.

It's the same as prerolling. You will only bet after your pattern occured which makes you bet less often and will only postpone the possible loss.

please don't write your pessimistic stuff all the time.



you all people are angry because losed alot of money in dice, and now are saying to all other peoples, that there is no strategy to beat it(because you don't have enought knowledge to figure out it), that is why you all are doing it?! Cheesy Cheesy Cheesy


otherwise i dont understand all you pesimists.
hero member
Activity: 813
Merit: 507
Hi
I am looking for a script that inside normal martingale will monitor for for the numbers and bet if they will show twice in the row?
So for example we do have normal 50% strategy with 100% on loose but if there will be 2 in the row below 1% it will bet 10% of balance below 1% and if it is above 99% it will bet 10% of balance above 99%?
Is the idea explained correctly?


Doesnt seem that hard to accomplish but just for your interest, waiting for these kind of patterns doesnt change your odds.

It's the same as prerolling. You will only bet after your pattern occured which makes you bet less often and will only postpone the possible loss.
newbie
Activity: 31
Merit: 0
Hi
I am looking for a script that inside normal martingale will monitor for for the numbers and bet if they will show twice in the row?
So for example we do have normal 50% strategy with 100% on loose but if there will be 2 in the row below 1% it will bet 10% of balance below 1% and if it is above 99% it will bet 10% of balance above 99%?
Is the idea explained correctly?
full member
Activity: 319
Merit: 100
tnx good script i go to try

it's only what OP asked...

i don't recommend that kind of stuff. with that kind of stuff you will lose same all bankroll maybe 10% less frequent than - simple double up every bet on 2x payout... Wink
newbie
Activity: 4
Merit: 0
tnx good script i go to try
Pages:
Jump to: