Vous êtes sur la page 1sur 3

system "DISTANCIAS-D"

method "main"
begin
//initialize some stuff when a NEW session starts
while starting a new session
begin
clear record "Ultima bola" layout;
put 1 on record "Posicion de salida" data;
put 1 on record "Progression" data;
put 0 on record "Total spin count" data;
set flag "Ready to bet" to false;

//put all data input onto one form.


group
begin
display "D I S T A N C I A S";
input data "DISTANCIA a Jugar" to record "distancia" data;
end
exit; //exit here and wait for the next spin
end

if Any Inside Bet has won each time


begin
set flag "Ready to bet" to false;//we WON so, get a new last number
put 0 on record "Total spin count" data;
put 1 on record "Progression" data;
end

//get the last number that came up


copy last number to record "Ultima bola" layout;
set flag "Ready to bet" to true;

// call "Distancia derecha";

call "Distancia izquierda";

call "Coloca apuestas";


add 1 to record "Total spin count" data;

end

//loop routine to Coloca apuestas that are located in data record "Numbers to bet"
method "Coloca apuestas"
begin
put 1 on record "Numbers to bet" layout index;

Loop Until record "Numbers to bet" layout index > 4


begin
put 100% of record "Progression" data to record "Numbers to bet" layout;
add 1 to record "Numbers to bet" layout index;
end
end

{loop routine to move counter clockwise around the wheel


and store each other number (same color) to a data record
called "Numbers to bet". These numbers will be used later to place
bets.}
method "Distancia izquierda"
begin
//put 100% record "distancia" data on record "Position Max" data;
put 100% record "distancia" data on record "Numbers to bet" layout index;
//put 1 on record "Posicion de salida" data;

Locate Number Left of Record "Posicion de salida" data from the


Record "Ultima bola" Layout to
Record "Numbers to bet" Layout;

//Adjust position if around the 0 to get the correct color.


{ if record "Numbers to bet" layout = Number 0
or record "Numbers to bet" layout = Number 26
begin
if record "Position Max" data not = 8
begin
put 8 on record "Position Max" data;
add 1 to record "Posicion de salida" data;
Locate Number Left of Record "Posicion de salida" data from the
Record "Ultima bola" Layout to
Record "Numbers to bet" Layout;
end
end
add 2 to record "Posicion de salida" data;
add 1 to record "Numbers to bet" layout index;//move pointer}
end

{loop routine to move clockwise around the wheel


and store each other number (same color) to a data record
called "Numbers to bet". These numbers will be used later to place
bets.
}
method "Distancia derecha"
begin
put 7 on record "Position Max" data;
put 1 on record "Numbers to bet" layout index;
put 1 on record "Posicion de salida" data;

Loop Until record "Posicion de salida" data > record "Position Max" data
begin
Locate Number Right of Record "Posicion de salida" data from the
Record "Ultima bola" Layout to
Record "Numbers to bet" Layout;

//Adjust position if around the 0 to get the correct color.


if record "Numbers to bet" layout = Number 0
or record "Numbers to bet" layout = Number 32
begin
if record "Position Max" data not = 8
begin
put 8 on record "Position Max" data;
add 1 to record "Posicion de salida" data;
Locate Number Right of Record "Posicion de salida" data from the
Record "Ultima bola" Layout to
Record "Numbers to bet" Layout;
end
end
add 2 to record "Posicion de salida" data;
add 1 to record "Numbers to bet" layout index;//move pointer
end
end

Vous aimerez peut-être aussi