Bitcoin Forum
December 11, 2024, 11:49:57 PM *
News: Latest Bitcoin Core release: 28.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 57 58 59 60 61 62 »
  Print  
Author Topic: Seuntjie' Dice bot programmers mode discussion.  (Read 125463 times)
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
September 21, 2017, 09:45:30 AM
 #841

... Most-all complaints I have heard about 999dice scamming is the same as you hear about any other site - sore losers.
Quoted for truth...

Honestly, all the threads in the accusations board against the "major" dice sites are generally from users who fail at understanding the basics of "house edge" and "variance" and other math that loads the game in the favour of the house...

They just can't understand how their "fool proof" betting strategy has failed... or why you can get a 20+ losing streak at 49.5% chance... OR they come from users who are pissed off that their faucet farming strategy has been noticed and their account has been blocked. Roll Eyes

Anyone with a basic understanding of math and probability should be able to understand why casinos don't have to cheat the players...

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
houseworx
Full Member
***
Offline Offline

Activity: 319
Merit: 100


View Profile
September 22, 2017, 03:06:21 PM
 #842

... Most-all complaints I have heard about 999dice scamming is the same as you hear about any other site - sore losers.
Quoted for truth...

Honestly, all the threads in the accusations board against the "major" dice sites are generally from users who fail at understanding the basics of "house edge" and "variance" and other math that loads the game in the favour of the house...

They just can't understand how their "fool proof" betting strategy has failed... or why you can get a 20+ losing streak at 49.5% chance... OR they come from users who are pissed off that their faucet farming strategy has been noticed and their account has been blocked. Roll Eyes

Anyone with a basic understanding of math and probability should be able to understand why casinos don't have to cheat the players...
Gold+++

████          O W N R   W A L L E T          ████   VISA PREPAID CARD    ████  Use crypto to pay in stores with OWNR  ████
❱❱❱❱ ❱❱❱ ❱❱ ❱     Buy, send, receive and exchange crypto        VISA    mastercard   SPA    UnionPay     ❰ ❰❰ ❰❰❰ ❰❰❰❰
BLOG       TWITTER     ██ █▌█ ▌     Manage crypto and VISA card in OWNR Wallet app    ▐ █▐█ ██     REDDIT   YOUTUBE
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
September 23, 2017, 06:44:32 PM
 #843

DiceBot 3.3.9 is now available! Get it at https://bot.seuntjie.com/botpage.aspx

Change Log

New Features
None


Changes
Added Dash and Ltc for Bit-Exo
Added Bch to DuckDice
Disabled withdraw on DuckDice
Added Bch to SafeDice
999Dice added new mirror
crypto games removed game,added stratis
bitvest added ltc, eth
added lua garbage collection to manage memory


Bug Fixes
Fixed bit-Exo login problems
Stake Fixed 2fa sign on
Stake fixed chance bug
Freebitco.in disabled reset seed, tip, withdraw to prevent crash.
DuckDice Fixed login to use new API key
bitvest fixed betting
fixed reset stats without having started the bot previously bug
fixed lower limit

ssongssu37
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
September 28, 2017, 05:04:27 PM
 #844

Hi, I made my first script from watching tutorial youtube and other guides.

What it does is it searches for 200 rows of number < 99.34 while rolling 50% at 10satoshi. (This is because 10 satoshi gives me faster speed)

When it reaches 200 rolls It changes the chance to .66% and starts the martingale to look for high number above 99.34.

increase after each bet is 1.00725x

When I get a hit it goes back to searching for 200 rows again.

Code:
chance = 50

basebet = .0000001
betcount = 0
nextbet= basebet
bethigh = false

function dobet()

if betcount>100 and win then
chance = 50
nextbet= basebet
bethigh=false
betcount=0
end

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

if betcount >100 then
chance = .66
nextbet = previousbet*1.00725
bethigh = true
end

end

What I want to improve on my script is that I want to be able to search for not only high .66% numbers but also low .66% numbers at the same time.

And which ever rows of 200 comes first I can start martingale for lows or highs.

Can anybody help me?

Thank you.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
September 29, 2017, 01:36:35 AM
 #845

You could just create a 2nd "betcount" variable... and do the check and increment on that as well... so instead of betcount, use lowCount and highCount...

Code:
lowcount = 0
highcount = 0
...
function dobet()
...
  #check and reset on wins etc
...
  if lastBet.Roll < 99.34 then
    highcount += 1
  else
    highcount = 0
  end
 
  if lastBet.Roll > 0.66 then
    lowcount += 1
  else
    lowcount = 0
  end

  if highcount > 100 then
    chance = 0.66
    nextbet = previousbet*1.00725
    bethigh = true
    bettinghigh = true
  elseif lowcount > 100 then
    chance = 0.66
    nextbet = previoubet*1.00725
    bethigh = false
    bettinglow = true
  end

end
You will probably need to put in checks on the "bettingHigh = true" and "bettingLow = true" flags or you might find it switches from one to the other if both high and low hit 200+ streaks


One last thing... the "max expected" loss streak for that chance over 1,000,000 rolls is something like 1400-1500... so don't be too surprised when you suddenly hit a crazy 1000+ losing streak and find you've lost 0.1 BTC+ on your martingale #justSaying Wink

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
ssongssu37
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
September 29, 2017, 09:22:02 PM
Last edit: September 30, 2017, 01:03:39 AM by ssongssu37
 #846

You could just create a 2nd "betcount" variable... and do the check and increment on that as well... so instead of betcount, use lowCount and highCount...

Code:
lowcount = 0
highcount = 0
...
function dobet()
...
  #check and reset on wins etc
...
  if lastBet.Roll < 99.34 then
    highcount += 1
  else
    highcount = 0
  end
  
  if lastBet.Roll > 0.66 then
    lowcount += 1
  else
    lowcount = 0
  end

  if highcount > 100 then
    chance = 0.66
    nextbet = previousbet*1.00725
    bethigh = true
    bettinghigh = true
  elseif lowcount > 100 then
    chance = 0.66
    nextbet = previoubet*1.00725
    bethigh = false
    bettinglow = true
  end

end
You will probably need to put in checks on the "bettingHigh = true" and "bettingLow = true" flags or you might find it switches from one to the other if both high and low hit 200+ streaks


One last thing... the "max expected" loss streak for that chance over 1,000,000 rolls is something like 1400-1500... so don't be too surprised when you suddenly hit a crazy 1000+ losing streak and find you've lost 0.1 BTC+ on your martingale #justSaying Wink



Hi, Thank you for the response on my script!!

I've been working on my script all night long and I succeeded to count both ways. Here is my improved script.


Code:
chance = 50
basebet = .0000002
highcount = 0
lowcount = 0
nextbet= basebet
bethigh = false

function dobet()

if highcount>200 and win then
chance = 50
nextbet= basebet
bethigh=false
highcount=0
end

if lowcount>200 and win then
chance = 50
nextbet= basebet
bethigh=true
lowcount=0
end

if lastBet.Roll <99.34 and lowcount<200  then
highcount +=1
end

if lastBet.Roll >=99.34 then
highcount = 0
end

if lastBet.Roll >00.66 and highcount<200 then
lowcount +=1
end

if lastBet.Roll <=00.66 then
lowcount = 0
end

if highcount >=200  and lowcount <200  then
chance = .66
nextbet = previousbet*1.00725
bethigh = true
end

if lowcount >=200 and highcount <200  then
chance = .66
nextbet = previousbet*1.00725
bethigh = false
end

end



end



However, when the martingale is triggered after 200 count, the other side stop counting at 199 so that I don't trigger the martinale on the high side while low side martingale is in action.

How could I make the other side keep counting yet it doesn't trigger the martingale to other side?

And when that is possible, Let's say after a win on a martingale on the low side, the high side has accumulated count of 400 counts, then I want to go into the high side martingale right away with the increased basebet amount that would have been betted if it was triggered at 200 count.

so when the accumulated count is 400, then I want it to start the martingale at higher bet amount instead of the basebet.


PS. when should I use "elseif" instead of "if"
     What is "bettinghigh", "bettinglow" true/false ? What do they do?

Thank you for the help!!



seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
September 30, 2017, 01:34:25 PM
 #847

PS. when should I use "elseif" instead of "if"
     What is "bettinghigh", "bettinglow" true/false ? What do they do?

https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables

ssongssu37
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
September 30, 2017, 08:10:24 PM
 #848

PS. when should I use "elseif" instead of "if"
     What is "bettinghigh", "bettinglow" true/false ? What do they do?

https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables

It doesn't say anything about "elseif"

and "bettinghigh"?

What's the difference between "bethigh" and "bettinghigh"?

chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
September 30, 2017, 09:08:17 PM
 #849

PS. when should I use "elseif" instead of "if"
     What is "bettinghigh", "bettinglow" true/false ? What do they do?

https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables

It doesn't say anything about "elseif"

and "bettinghigh"?

What's the difference between "bethigh" and "bettinghigh"?



   There is nothing called elseif.  it's an
if
else (this is optional)
end
 
 statement.  But you can nest them so you could have

if
else
   if  <- this is only checked if the upper "if" failed. 
   end
end
 
 You can also have
if
  if
  end
else
  if
  end
end


bettinghigh is something you made up, so you will have to tell us what it means. 

bethigh (true/false) is how you tell the program how you want the next bet placed.  bethigh = true (bet high) = false (bet low)

 

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
September 30, 2017, 09:18:45 PM
 #850

They're just made up variables.... You can call them wherever you want...

In this case, they're what is known as a Boolean or True/False "flag" used to indicate a specific state...

Are we "betting high"?  Yes or No? Etc

With regards to the if/elseif/else question: www.tutorialspoint.com/lua/if_else_statement_in_lua.htm

They're useful for identifying a specific condition when you have multiple options...

Ie. (If) Is it blue? (elseif) Or red? (elseif) Or green? (elseif) Or yellow? (else) Or none of those colours

If the terms aren't familiar to you, then I suggest you read some basic programming tutorials and the ones that Seuntjie wrote, specific to the bot: https://bot.seuntjie.com/ProgrammerMode.aspx


There is nothing called elseif.
Yes, there is... Tongue

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
September 30, 2017, 09:36:18 PM
 #851

They're just made up variables.... You can call them wherever you want...

In this case, they're what is known as a Boolean or True/False "flag" used to indicate a specific state...

Are we "betting high"?  Yes or No? Etc

With regards to the if/elseif/else question: www.tutorialspoint.com/lua/if_else_statement_in_lua.htm

They're useful for identifying a specific condition when you have multiple options...

Ie. (If) Is it blue? (elseif) Or red? (elseif) Or green? (elseif) Or yellow? (else) Or none of those colours

If the terms aren't familiar to you, then I suggest you read some basic programming tutorials and the ones that Seuntjie wrote, specific to the bot: https://bot.seuntjie.com/ProgrammerMode.aspx


There is nothing called elseif.
Yes, there is... Tongue

Not a LUA guy.  Just play one on the interweb...  Tongue  I did not know that.  So you can have multiple elseif's and they get treated something like a select statement in other languages.  Learn something new everyday.  Thanks. 

ssongssu37
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
September 30, 2017, 09:54:32 PM
 #852

Quote
They're just made up variables.... You can call them wherever you want...

In this case, they're what is known as a Boolean or True/False "flag" used to indicate a specific state...

Are we "betting high"?  Yes or No? Etc

Code:
  if highcount > 100 then
    chance = 0.66
    nextbet = previousbet*1.00725
    bethigh = true
    bettinghigh = true
  elseif lowcount > 100 then
    chance = 0.66
    nextbet = previoubet*1.00725
    bethigh = false
    bettinglow = true
  end

How would I define bettinghigh and bettinglow flags before the "function dobet()"?

Do I put like

Code:
bettinghigh = betting>=99.34
bettinglow = betting <=00.66

??


Quote
You will probably need to put in checks on the "bettingHigh = true" and "bettingLow = true" flags or you might find it switches from one to the other if both high and low hit 200+ streaks


I not sure how checking bettinghigh and bettinglow stops from both high and low bets from switching when both are over 200. Could you explain the logic a bit more?

Thank you.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
October 01, 2017, 01:01:01 AM
 #853

You have three possible states...

1. Base betting, waiting for a streak of losses
2. Betting high after 200 rolls under 99.34
3. Betting low after 200 rolls over 0.66

So you set the flags accordingly...

1. bettingHigh = false, bettingLow = false
2. bettingHigh = true, bettingLow = false
3. bettingLow = true, bettingHigh = false

You can then check things like:

Code:
  if lowcount > 200 then
    if bettingHigh then
      #we're already rolling high, so just keep counting
      ... Do other stuff? ...
    else
      #found a streak, and not currently betting, game on!
      chance = 0.66
      bethigh = false
      nextbet = previousbet * 1.00074
      bettingLow = true
    end
  elseif highcount > 200 then
    if bettingLow then
      #we're already rolling low
      ... Other stuff? ...
    else
      #found a streak
      chance = 0.66
      bethigh = true
      ... Etc etc etc
    end
  end

Hopefully that gets you moving in the right direction Wink

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
ssongssu37
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
October 01, 2017, 05:02:59 AM
 #854

I've solved the both counts interfering issue with some double counting logic. I've tested it and it works great.
HCP's solution seems much more simple, I will have to study it more. Smiley

Code:

chance = 50
basebet = .0000001
highcount = 0
lowcount = 0
nextbet= basebet
bethigh = false
betcount = 1 -- I wanted to name this "highcount2" can I just make something up and let it count?
losecount = 1 -- This for "lowcount2"

function dobet()

if highcount > 200 and win then
chance = 50
nextbet = basebet
highcount = 0
betcount = 0
losecount += 200
end

if lowcount > 200 and win then
chance = 50
nextbet = basebet
lowcount = 0
losecount = 0
betcount +=200
end

if lastBet.Roll < 99.34 then
highcount += 1
betcount +=1
else
highcount = 0
end

if lastBet.Roll > 00.66 then
lowcount += 1
losecount +=1
else
lowcount = 0
end



if highcount >= 200 and losecount < 200 then
chance = .66
nextbet = previousbet*1.00725
bethigh = true
losecount = 0
end

if lowcount >= 200 and betcount <200 then
chance = .66
nextbet = previousbet*1.00725
bethigh = false
betcount = 0

end

end


With above script I have succeeded in doing martingale from both sides and counting from both sides without interfering each other.

What I really want to improve on this is that when I come out of a martingale win from low side, often times the high side have already accumulated over 200+ counts sometimes even 400+. How can I take advantage of that situation and make the starting bet accordingly?

Code:
if highcount >= 200 and losecount < 200 then
chance = .66
nextbet = previousbet*1.00725 ------- (if the highcount is 300, I want to make the betting amount higher)
bethigh = true
losecount = 0
end



So Could I add something like this before the dobet function?

Code:

newlowbet = basebet*1.00725^(lowcount-200)
newhighbet = basebet*1.00725^(highcount-200)




If I can do the above, how could I implement this in the script?




Thanks HCP for the help!!!! I really appreciate it!
ssongssu37
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
October 02, 2017, 01:15:22 AM
 #855

You have three possible states...

1. Base betting, waiting for a streak of losses
2. Betting high after 200 rolls under 99.34
3. Betting low after 200 rolls over 0.66

So you set the flags accordingly...

1. bettingHigh = false, bettingLow = false
2. bettingHigh = true, bettingLow = false
3. bettingLow = true, bettingHigh = false

You can then check things like:

Code:
  if lowcount > 200 then
    if bettingHigh then
      #we're already rolling high, so just keep counting
      ... Do other stuff? ...
    else
      #found a streak, and not currently betting, game on!
      chance = 0.66
      bethigh = false
      nextbet = previousbet * 1.00074
      bettingLow = true
    end
  elseif highcount > 200 then
    if bettingLow then
      #we're already rolling low
      ... Other stuff? ...
    else
      #found a streak
      chance = 0.66
      bethigh = true
      ... Etc etc etc
    end
  end

Hopefully that gets you moving in the right direction Wink

Ah~~~~~~~!!!! This make sense now!!!

I have three possible states.... I see!!!

Now let me work on my script again with this.
nishakumari
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
October 04, 2017, 04:58:43 PM
 #856

Wondering if someone can help me with this.

I would need to create an Array/Stack on length 10 FIFO(First in First out) which will have some Integer values ","(comma) separated. It should be Dynamic Array/stack means I would need to update it after each bet, so first entry will be replaced by second and second with third and so on and on Top the new value will be stored.

Exapmle:- Array={1,2,3,4,5,6,7}
new element to add in array is 9
so New Array should be Array={2,3,4,5,6,7,9}

Can anyone help me how we can do this?

Sorry if I didn;t able to make it understandable.

Thanks
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
October 04, 2017, 08:54:08 PM
 #857

You can probably do it easily (but most likely very inefficiently) by using a simple for loop and just moving the items along in the list:

Code:
myArray = {1,2,3,4,5,6,7,8,9,10}

for i=1,#myArray-1 do
  myArray[i] = myArray[i+1]
end
myArray[#myArray] = <INSERT NEW VALUE HERE>

Notes:
- It effectively moves every one place to the left and then adds the new value into the last slot... I don't think this would scale well, so I wouldn't try doing this on an Array that had like 100 values in it.
- Arrays (technically "Tables") in Lua tend to be indexed from 1
- the #myArray notation is basically just the "length" value of the array... a handy little operator when dealing with dynamically sized arrays Wink
- if you need to "read" the value being pushed off the queue, then you need to make sure you use myValue = myArray[1] BEFORE the for loop Wink

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
October 05, 2017, 06:54:30 AM
 #858

Wondering if someone can help me with this.

I would need to create an Array/Stack on length 10 FIFO(First in First out) which will have some Integer values ","(comma) separated. It should be Dynamic Array/stack means I would need to update it after each bet, so first entry will be replaced by second and second with third and so on and on Top the new value will be stored.

Exapmle:- Array={1,2,3,4,5,6,7}
new element to add in array is 9
so New Array should be Array={2,3,4,5,6,7,9}

Can anyone help me how we can do this?

Sorry if I didn;t able to make it understandable.

Thanks

This is called a queue (Stacks are FILO).

See https://www.lua.org/pil/11.4.html

You can use the code in that page in a seperate file (Call it queue.lua) and add loadfile("queue.lua") at the top of your script, before any variable definitions. Then you can just use the functions normally inside of your script.

nishakumari
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
October 05, 2017, 06:35:48 PM
 #859

Wondering if someone can help me with this.

I would need to create an Array/Stack on length 10 FIFO(First in First out) which will have some Integer values ","(comma) separated. It should be Dynamic Array/stack means I would need to update it after each bet, so first entry will be replaced by second and second with third and so on and on Top the new value will be stored.

Exapmle:- Array={1,2,3,4,5,6,7}
new element to add in array is 9
so New Array should be Array={2,3,4,5,6,7,9}

Can anyone help me how we can do this?

Sorry if I didn;t able to make it understandable.

Thanks

This is called a queue (Stacks are FILO).

See https://www.lua.org/pil/11.4.html

You can use the code in that page in a seperate file (Call it queue.lua) and add loadfile("queue.lua") at the top of your script, before any variable definitions. Then you can just use the functions normally inside of your script.

Thank you so much, I love the tool you made. I hope I would able to make what I am planing to make and would love to donate if make profit.

Thanks
Ligareaux
Full Member
***
Offline Offline

Activity: 532
Merit: 102



View Profile
October 07, 2017, 01:20:49 PM
 #860

how long must be the simulation to say that one script works? (run without go broke)

Contact on telegram @Fuba311 for the best Spanish translations!
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 57 58 59 60 61 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!