Bitcoin Forum
April 19, 2024, 06:16:31 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 ... 62 »
  Print  
Author Topic: Seuntjie' Dice bot programmers mode discussion.  (Read 125121 times)
franklintdv
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
March 04, 2016, 10:48:26 PM
 #101

Hi, i need a simple code when if i won the bet i keep the same bet but reduce the chance, something like this, its possible to do?

chance= 98
nextbet = balance*(0.01)

function dobet()
if win then
chance = previouschance(-1)
nextbet = lastbet
else
chance = 98
nextbet = balance*(0.01)
end
end

i really need a help because i dont know how to code

   Pretty close, Try this

chance= 98
nextbet = balance* .01

function dobet()

  if win then
    chance = chance - 1

--     nextbet = lastbet  Not needed, but you could put nextbet = previousbet

  else
    chance = 98
    nextbet = balance*.01
  end
end


Thanks, works greate, but its not a good strategy...  Shocked
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713550591
Hero Member
*
Offline Offline

Posts: 1713550591

View Profile Personal Message (Offline)

Ignore
1713550591
Reply with quote  #2

1713550591
Report to moderator
1713550591
Hero Member
*
Offline Offline

Posts: 1713550591

View Profile Personal Message (Offline)

Ignore
1713550591
Reply with quote  #2

1713550591
Report to moderator
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
March 05, 2016, 12:32:00 AM
 #102

Hi, i need a simple code when if i won the bet i keep the same bet but reduce the chance, something like this, its possible to do?

chance= 98
nextbet = balance*(0.01)

function dobet()
if win then
chance = previouschance(-1)
nextbet = lastbet
else
chance = 98
nextbet = balance*(0.01)
end
end

i really need a help because i dont know how to code

   Pretty close, Try this

chance= 98
nextbet = balance* .01

function dobet()

  if win then
    chance = chance - 1

--     nextbet = lastbet  Not needed, but you could put nextbet = previousbet

  else
    chance = 98
    nextbet = balance*.01
  end
end


Thanks, works greate, but its not a good strategy...  Shocked

   You gave it a try.  Now you can start tweaking it, and try other things.  That's the great thing about using the programmer mode.  Hopefully you didn't lose to much.   

franklintdv
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
March 08, 2016, 01:46:24 PM
 #103

I tried writing a new code that would just let the decimals do whatever they want, but update the minimum bet as my balance grew...

Quote from: my lua
chance=49.95
multiplier=0.4
minbet=0.01
divfactor=11763.8342980769


function dobet()
if previousbet*(1-multiplier)<minbet and win then
   minbet=balance/divfactor
   nextbet=minbet
   elseif win then
   nextbet = previousbet*(1-multiplier)
else   
   nextbet = previousbet*(1+multiplier)
end
end

Same deal as before. 15-25 bets and then 999dice cuts my api connection off.

have you tried running this script on another site? It seems that 999dice is doing weird things overall.

It lets me keep playing on safedice.

Thanks

I'm trying your script at just-dice but after an hour its just stop the bets. 
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
March 09, 2016, 10:40:10 AM
 #104

I tried writing a new code that would just let the decimals do whatever they want, but update the minimum bet as my balance grew...

Quote from: my lua
chance=49.95
multiplier=0.4
minbet=0.01
divfactor=11763.8342980769


function dobet()
if previousbet*(1-multiplier)<minbet and win then
   minbet=balance/divfactor
   nextbet=minbet
   elseif win then
   nextbet = previousbet*(1-multiplier)
else   
   nextbet = previousbet*(1+multiplier)
end
end

Same deal as before. 15-25 bets and then 999dice cuts my api connection off.

have you tried running this script on another site? It seems that 999dice is doing weird things overall.

It lets me keep playing on safedice.

Thanks

I'm trying your script at just-dice but after an hour its just stop the bets. 

Does the script stop the betting or does the bot disconnect?

seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
March 09, 2016, 10:41:08 AM
 #105

Quote from: franklintdv
I'm trying your script at just-dice but after an hour its just stop the bets.

Yeah, I found my code didn't even run as intended once I got it to run more than 15 hands  Undecided I quit after a couple hundred to fix it

Code has a tendancy to do what you tell it instead of what you want.

franklintdv
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
March 09, 2016, 02:34:53 PM
 #106

Quote from: franklintdv
I'm trying your script at just-dice but after an hour its just stop the bets.

Yeah, I found my code didn't even run as intended once I got it to run more than 15 hands  Undecided I quit after a couple hundred to fix it

Code has a tendancy to do what you tell it instead of what you want.

I'm enjoying the results of your script so far. But since he is not doing what you want maybe you can explain to anyone who can solve the problem helps you. The bot obeys what you program without flaws , it may be something you did wrong.
debuni
Legendary
*
Offline Offline

Activity: 1162
Merit: 1002



View Profile
March 11, 2016, 11:58:00 PM
 #107

Hi,

I'm having a strange problem with 999dice.

My script stop working after 10-15 bets without any reason and 999dice is unacceptable from the bot till I restart it. Balance is getting to 0.00000000, manual betting is not working, etc - like 999dice are blocking connections from the bot just 2-3 seconds after I ran it.

I'm using the same script in PD and SafeDice for over 100K bets without any fault.

999Dice and SafeDice are those with lower house edge of the supported list?

Any ideas? Thanks.

seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
March 13, 2016, 07:58:20 AM
 #108

ok I can see that there is a real problem here and something similar happens with fortunejack, so there seems to be a problem with the programmer mode. While i acknowledge that this is a problem, my priority for the next release is to make sure FJ runs stable in the advanced mode and then I want to continue work on version 4 of the bot, where most of the components of the bot will be redesigned and this should help fix the programmer mode.

If I can find anything obvious causing the problem in the programmer mode before the Fj release, I'll try to get it fixed.

debuni
Legendary
*
Offline Offline

Activity: 1162
Merit: 1002



View Profile
March 13, 2016, 09:15:23 PM
 #109

ok I can see that there is a real problem here and something similar happens with fortunejack, so there seems to be a problem with the programmer mode. While i acknowledge that this is a problem, my priority for the next release is to make sure FJ runs stable in the advanced mode and then I want to continue work on version 4 of the bot, where most of the components of the bot will be redesigned and this should help fix the programmer mode.

If I can find anything obvious causing the problem in the programmer mode before the Fj release, I'll try to get it fixed.

Thank you.

I think it could be because of too many bets/sec.
Can I set it in Programming mode bets/sec? As I see there is such setting in Advanced mode. But cannot find variable name in Programming mode.
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
March 14, 2016, 04:17:31 PM
 #110

The bet speed setting is active as long as it's enabled regardless of the mode you're using.

debuni
Legendary
*
Offline Offline

Activity: 1162
Merit: 1002



View Profile
March 14, 2016, 04:51:55 PM
 #111

The bet speed setting is active as long as it's enabled regardless of the mode you're using.

Understood. Tested. Just to know, even on just 1Bet/Sec bot is stopping after ~15 bets on 999dice.
Kavalskiy
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
March 16, 2016, 06:19:29 PM
 #112

Hi,
I have some idea but can not implement it.
Maybe somone can help me)
For example, i have some sequences of bets (5 for example), and i want that the bot bettin it sequences randomly
1st sequence:
0.00000001 Low
0.00000002 Low
0.00000004 High
0.00000008 High
2nd
0.00000001 Low
0.00000002 High
0.00000004 High
0.00000008 Low
3rd
0.00000001 High
0.00000002 Low
0.00000004 High
0.00000008 Low
etc...
help please)!
thank you!
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
March 16, 2016, 06:57:46 PM
 #113

Hi,
I have some idea but can not implement it.
Maybe somone can help me)
For example, i have some sequences of bets (5 for example), and i want that the bot bettin it sequences randomly
1st sequence:
0.00000001 Low
0.00000002 Low
0.00000004 High
0.00000008 High
2nd
0.00000001 Low
0.00000002 High
0.00000004 High
0.00000008 Low
3rd
0.00000001 High
0.00000002 Low
0.00000004 High
0.00000008 Low
etc...
help please)!
thank you!

   I'm sure you could create a table/array in LUA, but I don't have the time to look it up right this second.  The key would be to use the math.random() function.  
something like

sequencenum = math.random(1,size of table variable)  

Then use sequencenum to index into that table to the selected sequence.  

   If I have time later I'll look it up.  

Kavalskiy
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
March 16, 2016, 08:34:07 PM
 #114

well, I better wait Smiley
janggernaut
Legendary
*
Offline Offline

Activity: 2366
Merit: 1130


View Profile
March 26, 2016, 03:37:05 AM
 #115

hello, just want ask how to make a script in seunjti bot, if we want random chance ? let say i want minimum chance is 1% n max 5%, start bet at 0.00000001 , if lose increase 10% , and if win, reset.
thank you
janggernaut
Legendary
*
Offline Offline

Activity: 2366
Merit: 1130


View Profile
March 26, 2016, 02:13:41 PM
 #116

hello, just want ask how to make a script in seunjti bot, if we want random chance ? let say i want minimum chance is 1% n max 5%, start bet at 0.00000001 , if lose increase 10% , and if win, reset.
thank you

So the chance to win changes? If so, by how much?

So the bet starts at 0.00000001 and increases by 10% after every loss? And after a win it goes back to 0.00000001?

nope, just random chance on % win, from 1% - 5%,
yes.
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
March 26, 2016, 02:49:43 PM
 #117

hello, just want ask how to make a script in seunjti bot, if we want random chance ? let say i want minimum chance is 1% n max 5%, start bet at 0.00000001 , if lose increase 10% , and if win, reset.
thank you

So the chance to win changes? If so, by how much?

So the bet starts at 0.00000001 and increases by 10% after every loss? And after a win it goes back to 0.00000001?

nope, just random chance on % win, from 1% - 5%,
yes.

   This should do it.  Didn't test it, but it's pretty simple.  Also it always bets high, you can change the bethigh = true to false to bet low.  And the chance is always a whole number 1-5 

Code:

chance = math.random(1,5)
bethigh = true
basebet = 0.00000001
nextbet = basebet

function dobet()

chance = math.random(1,5)

if (win) then
   nextbet = basebet
else
   nextbet = previousbet * 1.1
end
   

end


janggernaut
Legendary
*
Offline Offline

Activity: 2366
Merit: 1130


View Profile
March 26, 2016, 10:36:15 PM
Last edit: March 26, 2016, 11:15:49 PM by janggernaut
 #118

hello, just want ask how to make a script in seunjti bot, if we want random chance ? let say i want minimum chance is 1% n max 5%, start bet at 0.00000001 , if lose increase 10% , and if win, reset.
thank you

So the chance to win changes? If so, by how much?

So the bet starts at 0.00000001 and increases by 10% after every loss? And after a win it goes back to 0.00000001?

nope, just random chance on % win, from 1% - 5%,
yes.

   This should do it.  Didn't test it, but it's pretty simple.  Also it always bets high, you can change the bethigh = true to false to bet low.  And the chance is always a whole number 1-5  

Code:


chance = math.random(1,5)
bethigh = true
basebet = 0.00000001
nextbet = basebet

function dobet()

chance = math.random(1,5)

if (win) then
   nextbet = basebet
else
   nextbet = previousbet * 1.1
end
  

end


seems cool, i'll give it a try, thank you very much for helping me dude

ok, im already tried it, its cool, but its just betting from range 1%-5%, (1%, 2%, 3%, 4%, n 5%). but can i betting at other %? example : at 3.5%, 2.75%, 1.13%, etc, so its really random chance from 1%-5%, not just 1, 2, 3, 4, n 5%, thank you in advance
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
March 26, 2016, 11:26:04 PM
 #119

hello, just want ask how to make a script in seunjti bot, if we want random chance ? let say i want minimum chance is 1% n max 5%, start bet at 0.00000001 , if lose increase 10% , and if win, reset.
thank you

So the chance to win changes? If so, by how much?

So the bet starts at 0.00000001 and increases by 10% after every loss? And after a win it goes back to 0.00000001?

nope, just random chance on % win, from 1% - 5%,
yes.

   This should do it.  Didn't test it, but it's pretty simple.  Also it always bets high, you can change the bethigh = true to false to bet low.  And the chance is always a whole number 1-5  

Code:


chance = math.random(1,5)
bethigh = true
basebet = 0.00000001
nextbet = basebet

function dobet()

chance = math.random(1,5)

if (win) then
   nextbet = basebet
else
   nextbet = previousbet * 1.1
end
  

end


seems cool, i'll give it a try, thank you very much for helping me dude

ok, im already tried it, its cool, but its just betting from range 1%-5%, (1%, 2%, 3%, 4%, n 5%). but can i betting at other %? example : at 3.5%, 2.75%, 1.13%, etc, so its really random chance from 1%-5%, not just 1, 2, 3, 4, n 5%, thank you in advance

   I thought you might ask something like that.  Try this.  math.random() returns a value between 0 and 1.  So by adding that to the prior chance you'll get the fractions.  I'm sure there is another way to do it with just one math.random, but I can't think of it off the top of my head. 

Code:


chance = math.random(1,5)
chance += math.random()
bethigh = true
basebet = 0.00000001
nextbet = basebet

function dobet()

chance = math.random(1,5)
chance += math.random()

if (win) then
   nextbet = basebet
else
   nextbet = previousbet * 1.1
end
   

end


janggernaut
Legendary
*
Offline Offline

Activity: 2366
Merit: 1130


View Profile
March 27, 2016, 12:06:45 AM
 #120

hello, just want ask how to make a script in seunjti bot, if we want random chance ? let say i want minimum chance is 1% n max 5%, start bet at 0.00000001 , if lose increase 10% , and if win, reset.
thank you

So the chance to win changes? If so, by how much?

So the bet starts at 0.00000001 and increases by 10% after every loss? And after a win it goes back to 0.00000001?

nope, just random chance on % win, from 1% - 5%,
yes.

   This should do it.  Didn't test it, but it's pretty simple.  Also it always bets high, you can change the bethigh = true to false to bet low.  And the chance is always a whole number 1-5  

Code:


chance = math.random(1,5)
bethigh = true
basebet = 0.00000001
nextbet = basebet

function dobet()

chance = math.random(1,5)

if (win) then
   nextbet = basebet
else
   nextbet = previousbet * 1.1
end
  

end


seems cool, i'll give it a try, thank you very much for helping me dude

ok, im already tried it, its cool, but its just betting from range 1%-5%, (1%, 2%, 3%, 4%, n 5%). but can i betting at other %? example : at 3.5%, 2.75%, 1.13%, etc, so its really random chance from 1%-5%, not just 1, 2, 3, 4, n 5%, thank you in advance

   I thought you might ask something like that.  Try this.  math.random() returns a value between 0 and 1.  So by adding that to the prior chance you'll get the fractions.  I'm sure there is another way to do it with just one math.random, but I can't think of it off the top of my head.  

Code:


chance = math.random(1,5)
chance += math.random()
bethigh = true
basebet = 0.00000001
nextbet = basebet

function dobet()

chance = math.random(1,5)
chance += math.random()

if (win) then
   nextbet = basebet
else
   nextbet = previousbet * 1.1
end
  

end


ok, i'll give it a try now, thank you very much dude

ok, the RESULT is very NICE, i like it, thank you once again for helping me dude!

Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 ... 62 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!