bug-gnubg
[Top][All Lists]
Advanced

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

[Bug-gnubg] Re: How fast can you cheat??


From: Michael Petch
Subject: [Bug-gnubg] Re: How fast can you cheat??
Date: Thu, 20 Aug 2009 13:53:08 -0600
User-agent: Microsoft-Entourage/12.20.0.090605

On 20/08/09 9:26 AM, in article
address@hidden, "address@hidden"
<address@hidden> wrote:
> 
> This is an interesting challenge.  Perhaps someone who knows gnubg better
> can explain how exactly the dice are generated from the Mersenne Twister.
> Given particular seeds, do we get the same sequence of dice rolls?  Or
> is it more complicated than that?

The answer is YES but with with a caveat. If you use the same seed you will
get the same dice results everytime. There is nothing special in the way
this is handled.

The oddity is in how the seed gets set when you use start a new match
through the GUI. If you start a new match, the seed is randomly set before
the match is played. You can see the seed it chose by starting a match, then
going to Settings/Options/Dice and looking at the "seed". If you set the
seed through the GUI (in options), and start a new match and then go back
and look at the seed it will change. I think what the GUI lacks in start
match is the option to use the current seed (instead of the one currently
set). I believe it was done this way so that for a casual player, each match
was different. I'm CC'ing the mailing list with this post/feature request..

Anyway, in current releases if you wish to use the GUI and set your own seed
and get the same dice rolls for an entire match do this:

A) Click "New" icon.
B) Enable "Manual Dice" checkbox
C) set any other player options that you wish.
D) Click "Ok"
E) The dice selection screen will appear. Don't select a roll, just hit
"Close"
E) Go to Options/Settings/Dice tab and
    a) Set the random number generator to Mersenne Twister (or which ever
       seeded PRNG you like)
    b) set the seed to some value (3101)
    c) Click "OK"

[At this point the seed is set]

F) Click anywhere on the board and you should get a message along the lines
of "A new match" has been started.
G) Play the match

Now do this process again and from the start with the same seed. The rolls
generated should be the same.

(There is  a shorter way to set the seed from the "command panel" using the
"set seed" command for power users).


Michael







reply via email to

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