bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] Known bug - possible work-around ? (extended)


From: Nardy Pillards
Subject: [Bug-gnubg] Known bug - possible work-around ? (extended)
Date: Thu, 1 Aug 2002 20:08:20 +0200

Bug:
Rollouts with dice RNG set to Manual

RNG set to  Manual.
Analysis Rollout asks for the dice before every trial.

Possible work-around:

First: keep track of the RNG used before user chooses 'manual'
To embed in module 'Choose RNG for dice'

constant cPreviousRNG (container for last used RNG)
constant cRNGNow (variable with RNG being used)

IF 'set RNG to manual'
    IF cRNGNow <> 'manual'
        THEN
            cPreviousRNG = cRNGNow
    END
END

Second: if user asks for roll-out, check status of cRNGNow.
Change to previous RNG if needed.
After RollOut (or when RollOut interrupted), put back to manual.
To embed in module 'Do RollOut'

constant cStartRollOut (TRUE when RollOut starts, FALSE otherwise)
constant cInterruptRollOut (event; changes cStartRollOut to FALSE if
triggered)
constant cEndRollOut (event; changes cStartRollOut to FALSE if triggered)
constant cRNGChanged (TRUE if rollout caused to change it, FALSE otherwise)

cRNGChanged is FALSE
IF cStartRollOut is TRUE AND cRNGNow = 'manual'
    THEN
        cRNGNow = cPreviousRNG
        cRNGChanged is TRUE
END

IF (cInterrupRollOut OR cEndRollOut) AND cRNGChanged
    THEN
        cRNGNow = 'manual'
        cRNGChanged is FALSE
END

Result:
When user does a rollout, module will check if RNG is set to manual.
If so, it will change the RNG to the last one used,
do the rollouts and
once the rollout is done or interrupted,
will put the RNG back to manual.


I do realise this is not a 'nice' solution,
but at least it is better than asking the user to change it himself/herself
by hand
before and after every rollout he/she wants to do.


__________
Nardy


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/2002




reply via email to

[Prev in Thread] Current Thread [Next in Thread]