• Welcome to #1 Roulette Forum & Message Board | www.RouletteForum.cc.

News:

Progression bets are nothing more than different size bets on different spins. You could get lucky and win big, or unlucky and lose even more.

Main Menu
Popular pages:

Roulette System

The Roulette Systems That Really Work

Roulette Computers

Hidden Electronics That Predict Spins

Roulette Strategy

Why Roulette Betting Strategies Lose

Roulette System

The Honest Live Online Roulette Casinos

Tested my bot forthe first time using external script.

Started by Ralph, Oct 19, 02:14 PM 2012

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ralph

I have used some time the last weeks to code a bot. The bot using external scripts so to make it possible to make all kinds of methods, and make any possible bet.
The bot accepts scripts in any major script language, such as VBScript, Java Script, perl and other.

It can read from excel sheets or files. Files can be located on the computer or remote on any computer in the world, running a server software.

The bot has a sandbox allocation in memory. 

Still in beta version, it will take some more time to fine tuning, and write scripts for some methods.

My first test today was a simple script for a system I do not play, but it was easy to code and good for testing the bot.

I wrote it in VB Script and the method is the old martingale.

Easy to code just this lines. Three more and you can change to other EC s than red which is here.
And one more line for stop-loss and steps.


Code (javascript) Select
Function extfunc(a,b,c)
    rarr=",1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36,"
If Instr(1,rarr, "," & a +",") > 0 Then
extfunc = "rr/" & b
Else
  u= c &  "," & c
extfunc = u & "/" & b
End If
End Function



The best way to fail, is not to try!

Still

Hi Ralph,

Very good! 

Can you comment on the code provided? 
What is the significance of a,b and c?
What is this function intending to return?
How will the return value be used?

 

Ralph

The bot send a which is the winning number.
b which is the value of the chips to use (the bot do not mix values rather put 11 of the ground value
11 times).
c is the internal cod for a bet on red.

Whats happen is:

The script takes the winning number, check if it is red, (if it is in the red string rarr.)

If it is red it returns the bet one time and the value of the ground chip.

If not red it send twice the  number of c (the code to bet red).

I have codes for all possible bet, which the scripts can return in an array or comma delimeter string, to a switch placing the bets.
The best way to fail, is not to try!

Ralph

The bot understand many script language, so this script is coded in JavaScript, one of my favorite methods. The magnificent  seven!



Code (javascript) Select
var winnarr = new Array(0,0,0,0,0,0,0);

var stakearr = new Array();

function extfunc(a,b,c){


if(stakearr.length< 7){

    if(stakearr.indexOf(a)==-1){
     
         
          stakearr[stakearr.length] = a;
          p= winnarr[stakearr.length -1] ;
          p++;
          winnarr[stakearr.length -1] = p;
     } else {
       p = winnarr[stakearr.indexOf(a)];
       p++;
       winnarr[stakearr.indexOf(a)] = p;
      }
  } else{
    if( stakearr.indexOf(a)>-1){
        p = winnarr[stakearr.indexOf(a)];
        p++;
        winnarr[stakearr.indexOf(a)] = p;
     
    }
       
  }
     var retstr = "";
   
   for(i=0;i<stakearr.length;i++){
        if(winnarr[i] > 0){
       
          for(j=0;j<winnarr[i];j++){
              retstr = retstr + stakearr[i] + ",";
         
          }
   
        } else {
              retstr = retst + stakearr[i] + ",";
         
        }
   }
   return retstr + "/" + b;
}
</script>



If your version of JavaScript not support indexOf for Arrays, you have to rewrite, or more easy
add the function, put the prototype function below in the script.


Code (javascript) Select
if (!Array.prototype.indexOf)
{
  Array.prototype.indexOf = function(elt /*, from*/)
  {
    var len = this.length;

    var from = Number(arguments[1]) || 0;
    from = (from < 0)
         ? Math.ceil(from)
         : Math.floor(from);
    if (from < 0)
      from += len;

    for (; from < len; from++)
    {
      if (from in this &&
          this[from] === elt)
        return from;
    }
    return -1;
  };
}


The M7 bet max 7 numbers and add a chips on winning numbers.

The script gets a: the winning number, b the ground chip value and c the code for the kind of bet.

The first thing the code does is to check if it is less than 7 numbers in play.
If check if it has been played before, and if add a chip to the number.

If it has not been in played before play one chip.

If it is 7 numbers, check if it belongs to them, if add a chip if not ignore and pass back the same bet.

One array store the numbers and stop fetching numbers when there is seven.
The other array, store how many times the number of the numbers in the play has hit, and
and adjust the return value to the correct number of chips at the playing numbers.


The bot can read this scripts on the local computer or on a remote one.
The best way to fail, is not to try!

Ralph

Added (it works , but fast ugly code) all EC to the martingale script, it can play one EC at the time, diff betting and more than one EC can this script not handle.  I will do one in javascript later on.

Code (javascript) Select
Function extfunc(a,b,c)

rarr=",1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36,"
If a = "0" Then 
      extfunc = c & "," & c & "/" & b
End If

l = left(c,2)

Select  Case l
Case "rr"
If Instr(1,rarr, "," & a & ",") > 0 Then
    extfunc = l & "/" & b
Else
   extfunc = c &  "," & c & "/" & b
End If

Case "bb"
If Instr(1,rarr, "," & a & ",") = 0 Then
       extfunc = l & "/" & b
Else
       extfunc = c &  "," & c & "/" & b
End If

Case "ll"
If CInt(a) < 19 Then
        extfunc = l & "/" & b
Else
        extfunc = c &  "," & c & "/" & b
End If

Case "hh"
If CInt(a) > 18 Then
       extfunc = l & "/" & b
Else
       extfunc = c &  "," & c & "/" & b
End If

Case "oo"
  If CInt(a) Mod 2 = 1 Then
        extfunc = l & "/" & b
Else
        extfunc = c &  "," & c & "/" & b
End If

Case "ee"
If CInt(a) Mod 2 = 0 Then
        extfunc = l & "/" & b
Else
       extfunc = c &  "," & c & "/" & b
End If

Case Else

        extfunc =   l & "/" & b

End Select

End Function
The best way to fail, is not to try!

TwoCatSam

Ralph

I think you said you're 73.  It's a known fact that people your age are computer illiterate!  What's wrong with you, anyway?  ;D

TCH
If dogs don't go to heaven, when I die I want to go where dogs go.  ...Will Rogers

Ralph

The best way to fail, is not to try!

TwoCatSam

If dogs don't go to heaven, when I die I want to go where dogs go.  ...Will Rogers

VLS

Sam, roulette and coding keep one's mind sharp as a butcher's knife  :)


Once you get the bug... you're bitten for a lifetime!
🡆 ROULETTEIDEAS․COM, home of the RIBOT FREE software bot, with GIFTED modules for the community! ✔️

Stepkevh

Yep Vic,

thats true.

I started with programming in VBA and can stop with it.
Now i'm coding everything with a form for a better look.

Meanwhile i already have Visual Studio 2012 because i believe that runs .net and C & C+

So thats the next step
Just call me Stef ... its shorter then Stepkevh :-)

Ralph

I want to advice the use of javaScript for coding the scripts, as it is a widely used client side language, which many use, and have an engine on the computer which all with internet has today.


I will soon invite some for using it in a beta test.

I will write some more scripts, and locate them so the boot will find them . The bot is not
capable to send anything except link: forms, and can only recive from the script libary
The boot will automatic update all methods in the remote library. In such way will everyone using the bot have access to all scripts. The user can if wanted get the spinning numbers history be sent to her mailbox, as the bot is isolated in a sandbox it do not like to write to the users disk.

The API is simple three parameters coming from the bot.

1,The last winning number as integer or variant or string.
2,The ground bet as integer  or variant or string.
3,The internal betting codes as string allways one to three letters, a single chip bet.

The scripts should use this information and return   a string which
is a comma delimeter list of the bets ie "rr,rr,rr"  for three on red.
"ld,md" for one groundvalue on low and midle dozen.
and at the end a "/"  following of a number indicating the ground chip to bet next time.

So if it is Dàlembert System on black and black 2 comes up the first bet the bot send:
2,0,bb to the script. 2 is the number 0 is stake 0,01, bb is one chip on black.

The script  should know its a win, and the bet should be reduced by one, if the betsize is
bigger then one.
In this case it returns  "bb\0" telling the bot "place one chip on black and spin".
If next time the bot send  7,0,bb  telling the script it was one 0.01 chip one black and 7 has won.

The script should now  send back a higher bet which is  bb,bb\0  an instruction to bet
two on black using 0.01 chip.

A script which handle the Dàlembert  method is below, it can bet any EC, but just one at the time,
it can start with one or more chips and then play up one on loss and down one on win, but if one left continue to bet one until loss and then stake one more.

The bot has a semi automatic mode as well, the user press the spin button, and the bot do the rest place the bets and the script run the method. this is handy then methods are used which
need a human decission on when to stop.

Any method and any bets can be coded.


Code (javascript) Select





var rarr = new Array(1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36);


Array.prototype.contains = function(obj) {
    var i = this.length;
    while (i--) {
        if (this[i] == obj) {
            return true;
        }
    }
    return false;
}



function extfunc(a,b,c){

  var l =  c.substring(0,2);
   var tt = new Array();
   tt = c.split(",");
  if(a == "0"){ return ""+c + "," + l + "/" + b;}
    if(l=="rr"){
   
        if(rarr.contains(a)){
        if(c==l){
        return "" +c + "/" + b;
          } else {
       
       tt.pop();
           return ""+ tt.join(",") + "/" + b;
         }
         } else {
       return ""+c + "," + l + "/" + b;   
   }
}

       if(l=="bb"){
        if(!rarr.contains(a)){
  if(c==l){
   return "" +c + "/" + b;
  } else {
       
       tt.pop();
           return ""+ tt.join(",") + "/" + b;
         }
         } else {
       return ""+c + "," + l + "/" + b;
    }
   }   
     
    if(l=="ee"){
    if(a % 2 == 0){
    if(c==l){
     return "" +c + "/" + b;
    } else {
   tt.pop();
           return ""+ tt.join(",") + "/" + b;
        }
    } else {
    return ""+c + "," + l + "/" + b;
  }
     }
     
     if(l=="oo"){
    if(a % 2 == 1){
    if(c==l){
     return "" +c + "/" + b;
    } else {
   tt.pop();
           return ""+ tt.join(",") + "/" + b;
        }
    } else {
    return ""+c + "," + l + "/" + b;
  }
     }
      if(l=="ll"){
    if(a < 19){
    if(c==l){
     return "" +c + "/" + b;
    } else {
   tt.pop();
           return ""+ tt.join(",") + "/" + b;
        }
    } else {
    return ""+c + "," + l + "/" + b;
  }
     }
     
      if(l=="hh"){
    if(a > 18){
    if(c==l){
     return "" +c + "/" + b;
    } else {
   tt.pop();
           return ""+ tt.join(",") + "/" + b;
        }
    } else {
    return ""+c + "," + l + "/" + b;
  }
     }

}

</script>

The best way to fail, is not to try!

Ralph

I have done a few more scripts of old common methods, and run it for about 5000 spins at BV.
I use only 0,01, as I have not implemented the win target function yet.  The net was  270 units.

I used slow and safer methods which is too boring playing manual.

Whats left too, is to make it more user friendly, it is sometimes harder than make the program working.
The best way to fail, is not to try!

TwoCatSam

If dogs don't go to heaven, when I die I want to go where dogs go.  ...Will Rogers

Ralph

I put the bot running during the night, had 10 Euro in the account. Let it run Oscars grind. Seven hours later the bot stops, due to lost all. Switched to M7 running the bot semi automatic (which means the bot make all except hit the spin button) for 1 minut and got it back plus 3 Euro.I used 0.1 chips then. 
The best way to fail, is not to try!

-