Bitcoin Forum
December 15, 2024, 11:29:41 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 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 125472 times)
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
January 30, 2019, 02:52:45 AM
 #1101

Personally, I believe that is somewhat flawed logic (basing your decisions on past results) and getting into "gamblers fallacy" territory... given that each roll is independent, the probabilities are (should be?) exactly what you choose for your "chance" (minus the house edge, of course). Wink Tongue

To make the most of those bet history functions, you're going to need an understanding of SQL queries (especially for getHistoryByQuery()) and/or the Dicebot Database schema.

A SQLite DB browser like this one will let you look through the database structure to get an idea of the data that is stored. As for SQL queries, there are plenty of tutorials available online to explain how "SELECT" statements work.

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


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

Activity: 1717
Merit: 1125



View Profile WWW
January 30, 2019, 06:41:28 AM
 #1102

Personally, I believe that is somewhat flawed logic (basing your decisions on past results) and getting into "gamblers fallacy" territory... given that each roll is independent, the probabilities are (should be?) exactly what you choose for your "chance" (minus the house edge, of course). Wink Tongue

To make the most of those bet history functions, you're going to need an understanding of SQL queries (especially for getHistoryByQuery()) and/or the Dicebot Database schema.

A SQLite DB browser like this one will let you look through the database structure to get an idea of the data that is stored. As for SQL queries, there are plenty of tutorials available online to explain how "SELECT" statements work.

+1

+1

+1

sleepyeyed
Newbie
*
Offline Offline

Activity: 23
Merit: 1


View Profile
January 30, 2019, 12:57:30 PM
Merited by HCP (1)
 #1103

I understand where you're coming from in regards to the gambler's fallacy. I would say however that there is something to be said about a certain equilibrium being maintained within a certain set of numbers when also taking standard deviation into account. In no way would I say that previous results dictate future ones, but I would say that betting with probabilities would more likely be beneficial rather than betting against them. Could be flawed logic on my part, but it's still interesting and fun to explore. I'm not out to create a bulletproof script, just one that maximizes the chances for survival based on statistical analysis. I do appreciate your input and the help you've given me with my code and will continue to learn more about LUA scripting. I'm not trying to set the world on fire or anything, it's just a fun rabbit hole I've recently discovered that seems to have no bottom.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
January 31, 2019, 01:39:22 AM
 #1104

question.bet on DiceBot . the result would be the same. if you would bet on the site
The short, very generalised, answer would be "Yes".

The long answer would be it depends on the website and how it implements client seeds and/or your ability to change/specify them. But, generally speaking, if you're using the same seed and/or nonce in the bot as on the website, then yes the results would (should) be identical regardless of whether or not you used bot or web browser.


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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
sleepyeyed
Newbie
*
Offline Offline

Activity: 23
Merit: 1


View Profile
February 06, 2019, 02:08:29 PM
 #1105

Anyone know if in the console there's a command to stop on a win when running a script or is stop() the only way to stop it?
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
February 06, 2019, 07:11:30 PM
 #1106

As far as I know, there is no stoponwin() function or anything like that... You have to code that into your script yourself.

Code:
if <insert some condition> then
  stop()
end

I've used a boolean flag before, to "stop on next win" etc...

Code:
...
stoponwin = false
...
function dobet()
  ...
  if (win) then
    if (stoponwin) then
      stop()
    end
  ...
  end
...
  if (profit > 0.001) then
    stoponwin = true
  end
...
end

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
sleepyeyed
Newbie
*
Offline Offline

Activity: 23
Merit: 1


View Profile
February 06, 2019, 07:43:17 PM
 #1107

Thanks. Might be useful, but I was hoping for a single command to type while my script was going. I find it odd that there's stop on win button available for the advanced mode, but not programmer mode.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
February 06, 2019, 07:55:54 PM
 #1108

Well, technically that could also be used as "a single command to type while [your] script was going"... If you were to type:
Code:
stoponwin = true
on the console when the script is running... then on the next win, the script will stop.

In fact, that is how I generally use it. You don't even need the "if (profit)" check or anything other condition to set stoponwin for that matter... just the:
Code:
  if (win) then
    if (stoponwin) then
      stop()
    end
  end

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
sleepyeyed
Newbie
*
Offline Offline

Activity: 23
Merit: 1


View Profile
February 07, 2019, 06:20:22 PM
 #1109

Aha, very nice. I'll have to do this. Thanks.
sleepyeyed
Newbie
*
Offline Offline

Activity: 23
Merit: 1


View Profile
February 22, 2019, 05:55:54 PM
 #1110

Is there an easy way to change bets based on luck percentage?

such as..

Code:
if luck<=100% then nextbet=basebet*multiplier
  else
   nextbet=basebet

If not then what's an easy way to calculate the luck percentage and apply the above code?
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
February 23, 2019, 07:18:43 PM
 #1111

Is there an easy way to change bets based on luck percentage?

such as..

Code:
if luck<=100% then nextbet=basebet*multiplier
  else
   nextbet=basebet

If not then what's an easy way to calculate the luck percentage and apply the above code?

iirc there is no luck variable available in the programmer mode. You can see the method DiceBot uses to calculate luck at https://github.com/Seuntjie900/DiceBot/blob/master/DiceBot/cDiceBot.cs#L1392. Do with that what you want

Victorycoin
Hero Member
*****
Offline Offline

Activity: 1134
Merit: 517



View Profile
April 19, 2019, 02:42:54 PM
 #1112

No update about more than a month about about the bot on this discussion board. Programmers stopped the discussion or they just left the topic or will start asap just a break.
dimondimon
Member
**
Offline Offline

Activity: 270
Merit: 10


View Profile
April 20, 2019, 03:50:09 AM
 #1113

No update about more than a month about about the bot on this discussion board. Programmers stopped the discussion or they just left the topic or will start asap just a break.

is the main forum for the bot , maybe they're out there , I'm always there to ask
Victorycoin
Hero Member
*****
Offline Offline

Activity: 1134
Merit: 517



View Profile
April 21, 2019, 12:45:30 PM
 #1114

No update about more than a month about about the bot on this discussion board. Programmers stopped the discussion or they just left the topic or will start asap just a break.

is the main forum for the bot , maybe they're out there , I'm always there to ask
I think they are out if they weren't out then they could reply to you. There are no moderation, no reply or nothing else for what  it seems they are still alive. All of the aspects prove they are gone.
ShooterXD
Hero Member
*****
Offline Offline

Activity: 924
Merit: 501

CryptoTalk.Org - Get Paid for every Post!


View Profile
April 21, 2019, 01:16:01 PM
 #1115

No update about more than a month about about the bot on this discussion board. Programmers stopped the discussion or they just left the topic or will start asap just a break.

is the main forum for the bot , maybe they're out there , I'm always there to ask
I think they are out if they weren't out then they could reply to you. There are no moderation, no reply or nothing else for what  it seems they are still alive. All of the aspects prove they are gone.

BTW, you can find All info needed in The official website. There are many usefull links for you my friend. Take a look

Mcolo99
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
April 24, 2019, 09:49:39 AM
 #1116

   This is a follow on to https://bitcointalk.org/index.php?topic=307425.0  

This is the place to discuss the programmer mode of Seuntjie's dice bot.  Also discuss the Lua language as it applies there.  

Hello all!! Grin Grin

Im a quite useless scripter or developer in any way, that is since i am a mechanic and not engineer.

I would like to ask anyone who is experienced and can make lua scripts for seuntjie dicebot. I know how i want the script or function to work but just dont know how to make a script out of it, i have tried but it always end with headache.

So this i know

chance = 90
base= 0.00000010
resetseed(10000)
risk=20%

Stake= balance*risk

if losestreak 1 followed by 1 win > bet 10*base 1 time > reset to base (only beign executed if past 20 rolls includes max 1 loss)
if losestreak 1 followed by 4 win > bet 10*base 1 time > reset to base (only beign executed if past 20 rolls includes max 2 loss)
if losestreak 2 followed by 3 win > bet 20*base 1 time > reset to base
if losestreak 3 followed by 2 win > bet 30*base 1 time > reset to base
if losestreak 4 followed by 5 win > bet 40*base 1 time > reset to base
if losestreak 5 followed by 1 win > bet stake 5 times > reset to base

if 5 losestreak with in 20 rolls > continue base til winstreak 15


Thanks in advice
and ofcourse if someone take the time to do it and maby improve my idea i might send some $$$
zombie35
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 03, 2019, 12:02:24 AM
 #1117

https://bot.seuntjie.com/

Something something maintenance, be back later.
Victorycoin
Hero Member
*****
Offline Offline

Activity: 1134
Merit: 517



View Profile
May 10, 2019, 12:14:00 PM
 #1118

No update about more than a month about about the bot on this discussion board. Programmers stopped the discussion or they just left the topic or will start asap just a break.

is the main forum for the bot , maybe they're out there , I'm always there to ask
I think they are out if they weren't out then they could reply to you. There are no moderation, no reply or nothing else for what  it seems they are still alive. All of the aspects prove they are gone.

BTW, you can find All info needed in The official website. There are many usefull links for you my friend. Take a look
Okay, but I do not mean that I mean the are out from the topic moderation on bitcointalk. Are they active on bitcointalk,you can see that they are not, have you got my point?
sleepyeyed
Newbie
*
Offline Offline

Activity: 23
Merit: 1


View Profile
May 31, 2019, 02:43:19 PM
 #1119

 I have a couple scripts that work pretty well, but I'd like to change from one to the other within the same script. So simply put I'd like something that goes

Code:
if condition A exists then run script A
else
run script B
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
May 31, 2019, 05:21:34 PM
 #1120

I have a couple scripts that work pretty well, but I'd like to change from one to the other within the same script. So simply put I'd like something that goes

Code:
if condition A exists then run script A
else
run script B

See https://forum.seuntjie.com/index.php?topic=406.msg770#msg770 and https://forum.seuntjie.com/index.php?topic=64.msg131#msg131

Pages: « 1 ... 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!