Roulette Xtreme 2.0 - System Designer
Span
Identifier Index > S > Span

Glossary Item Box

Span

Format:  initial-condition-statement  source-support-condition  Span  integer  dest-record-layout

where

Description

The Span identifier is used to determine if two roulette individual numbers are equal to or less than a specified distance from each other located on the roulette wheel.  The process steps to perform this task is listed below:

  1. the identifier reads the source-support-condition layout value and dest-record-layout value.  Both layout values must contain an individual roulette numbers.

  2. the identifier validates that both layout values are individual roulette numbers and if not, display an error message to the user.

  3. the identifier reads the integer value.

  4. a comparison is made to determine if both individual roulette numbers are equal to or less than the integer distance on the roulette wheel.  

  5. if the condition outcome results of step 4 is true, program control will be passed to the body of the condition block.

Only individual roulette numbers are allowed to be used for the Span identifier.  Any other layout is invalid and will result in an error message.

Example

We want to determine if the last two numbers appearances are equal to of less than 4 gaps on the roulette wheel and if so, place a 2 unit neighbor bets for both numbers.  The following example will perform this task.

RX Script Copy Code
//copy previous number that has appeared to a data record
Locate Number Backward 1 spin from Last Number to Record "number 2" Layout

//copy last number that has appeared to a data record
Copy last number to record "number 1" layout

if record "number 1" layout span is within 4 gaps from 
           Record "number 2" Layout
begin
  //Set neighbor count
  Put 2 on Neighbor Count
  
  //copy neighbors from both numbers
  Copy Neighbors Record "number 1" layout to 
          Record "neighbor of number 1" layout

  Copy Neighbors Record "number 2" layout to 
          Record "neighbor of number 2" layout

  //place bets on the last two numbers
  put 2 units on record "number 1" layout
  Put 2 units on Record "number 2" layout

  //place bets on all neighbors
  Put 2 units on Record "neighbor of number 1" layout list
  Put 2 units on Record "neighbor of number 2" layout list
end

Results from example

Copyright © 2003 UX Software. All rights reserved