[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] quasi-random dice for the Initial Position
From: |
Jim Segrave |
Subject: |
Re: [Bug-gnubg] quasi-random dice for the Initial Position |
Date: |
Mon, 7 Jul 2003 11:45:19 +0200 |
User-agent: |
Mutt/1.2.5.1i |
On Mon 07 Jul 2003 (07:28 +0000), Joern Thyssen wrote:
> On Mon, Jul 07, 2003 at 08:50:39AM +0200, Jim Segrave wrote
> [snip]
> >
> > The dice sequence doesn't know how man trials it will be asked for, it
> > simply generates sequences such that every 30/36 games you get all
> > possible 1st rolls, every 1080/1296 games get every possible first 2
> > rolls, every 38880/46656 games you get full sets of 3 rolls, etc.
>
> Hmm, are you sure?
I'm going by the comments and a skim of the code, so no, I'm not
sure. But, if the code works correctly for non-initial positions and
produces correct results for 1296 games, 46656 games, etc. then it
would be true that deleting those sequences which begin with a double
should preserve the correctness of 2nd rolls. I'm not vouching for the
underlying code (I haven't actually read it in detail to see if that's
what it does). But I do have a perl script for taking lists of rolls
and checking the distributions for the first 3 rolls - I think I'll
lift the code out of rollout.c and try running the output on my
script.
--
Jim Segrave address@hidden