[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] GeneralCubeDecisionE & fCubeOwner problem
From: |
Joern Thyssen |
Subject: |
Re: [Bug-gnubg] GeneralCubeDecisionE & fCubeOwner problem |
Date: |
Fri, 30 May 2003 19:34:45 +0000 |
User-agent: |
Mutt/1.4.1i |
On Fri, May 30, 2003 at 12:17:47PM -0700, Jaro wrote
> Hi, all.
>
> I'm having problem to get right answer (output) from GeneralCubeDecisionE
> function.
>
> It seems like owner of cube is wrong. I thought zero means in
> fCubeOwner in cubeinfo struct, that cube is on "gnuboard[0]" side and
> 1 is on "gnuboard[1]" side. (-1 centered). If I comapred results with
> gnuBG. It seems to be opposite. Can somebody explain for me what is
> the right value for fCubeOwner?
I know this is inconsistent, but fMove and fCubeOwner is not related to
gnuboard at all. They related to anScore.
All Evaluate routines assume the player on roll has gnuboard[1] and the
oppoent gnuboard[0].
GNU Backgammon Position ID: 4HPkASjgc/ABMA
Match ID : cAkAAAAAAAAA
+13-14-15-16-17-18------19-20-21-22-23-24-+
| X O O | | O X |
| X O | | O X |
| X O | | O |
| X | | O |
| X | | O |
v| |BAR| |
| | | X |
| O | | X |
| O X | | X |
| O X | | X |
| O X | | X O O |
+12-11-10--9--8--7-------6--5--4--3--2--1-+
To evaluate this position with X on roll:
X owning 2-cube and leading 5-3 in a 7 point match:
fMove = 0, anScore={5,3}, nMatchTo=7, fCubeOwner=0, nCube=2
- or -
fMove = 1, anScore={3,5}, nMatchTo=7, fCubeOwner=1, nCube=2
In both cases
gnuboard= { { 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4,
0, 1, 0, 0, 3, 0, 5, 0, 0, 0, 0, 0, 0 },
{ 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5,
0, 0, 0, 0, 3, 0, 5, 0, 0, 0, 0, 0, 0 },
The important thing is that fMove=fCubeOwner and that the score is
correct relative to fMove.
> Another question is: What can be wrong if FindBestMove function is crashing
> iwhen I try to find the best move for plies > 0. For plies 0 it works w/o
> any problem.
It's hard to say: do you have a core dump/back trace?
Jørn