System by nireaper:
================================================================
I am trying to get software to look for a pattern four times then find pattern again and place bet so for example
Step 1 - find RRRRB
Step 2 - find another RRRRB but if found a RRRRR first then go back to step 1
Step 3 - find another RRRRB but if found a RRRRR first then go back to step 1
Step 4 - find another RRRRB but if found a RRRRR first then go back to step 1
Step 5 - find RRRR and place bet on R - if bet won go back to step one if lost go to step 6
Step 6 - find RRRR and place bet on R - if bet won go back to step one if lost go to step 7
Step 7 - same as step six and this would continue on progression finding next RRRR and placing next bet on progression until won.
===============================================================
system "nireaper Patterns"
{
}
method "main"
begin
while starting a new session
begin
call "init";
exit;
end
call "check win";
call "qualify";
end
method "check win"
begin
if net > 0
begin
put 1 unit on record "prog" data index;
put 0 units on record "counter" data;
end
if net < 0
begin
if record "prog" data index >= record "prog" data count
begin
put 1 unit on record "prog" data index;
end
else
begin
add 1 unit on record "prog" data index;
end
end
end
method "qualify"
begin
Track last Red-Black patterns for 5 spins to Record "pattern" layout;
if flag "isQualified" is false
begin
If List [Red, Red, Red, Red, Black] has a pattern match to Record "pattern" layout
begin
add 1 unit on record "counter" data;
if record "counter" data > 3
begin
set flag "isQualified" to true;
end
end
else
begin
If List [Red, Red, Red, Red, Red] has a pattern match to Record "pattern" layout
begin
put 1 unit on record "counter" data;
end
end
end
else
begin
if list [black, red, red, red, red] has a pattern match to record "pattern" layout
begin
call "place bets";
end
end
end
method "place bets"
begin
put 100% of record "prog" data on red;
end
method "init"
begin
set list [1, 2, 4, 8, 16, 32, 64] to record "prog" data;
put 0 on record "counter" data;
set flag "isQualified" is false;
end
Thanks for the code Roulette787
Could you have a look at a couple of things though -
1. If a zero appears in the sequence it needs to treat that sequence as a fail - at present if BRRRZR appears it would place bet as it is ignoring the zero , in order for the system to work it has to look for the seqence again with just BRRRR.
2. On a win it needs to completely reset and find the first three patterns again before betting - at present on win it just looks for another brrrr and starts betting again.
Again thanks alot for help.
Hi,
busy with some other stuff right now.
I'll leave it up to you to those little tweaks.
Cheers,
Roulette787.