[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] SGF code question
From: |
Chris Wilson |
Subject: |
[Bug-gnubg] SGF code question |
Date: |
Thu, 13 Mar 2003 13:40:16 -0600 |
I'm trying to write a routine apart from gnubg that I can use to parse
the .SGF file so I can place the individual game info into a database.
However, one section has me a bit confused. Take the following entry:
[M:22 21 22 22 0 0 0 0 1 0 21 22 0 0 0 0 0 0 0.120965 0.030241 0.000000
0.000000]
This is created by the following code block:
if( psc->fMoves ) {
fprintf( pf, "[M:%d %d %d %d ",
psc->anUnforcedMoves[ 0 ],
psc->anUnforcedMoves[ 1 ],
psc->anTotalMoves[ 0 ],
psc->anTotalMoves[ 1 ] );
for( st = SKILL_VERYBAD; st <= SKILL_VERYGOOD; st++ )
fprintf( pf, "%d %d ", psc->anMoves[ 0 ][ st ],
psc->anMoves[ 1 ][ st ] );
fprintf( pf, "%.6f %.6f %.6f %.6f]",
psc->arErrorCheckerplay[ 0 ][ 0 ],
psc->arErrorCheckerplay[ 0 ][ 1 ],
psc->arErrorCheckerplay[ 1 ][ 0 ],
psc->arErrorCheckerplay[ 1 ][ 1 ] );
}
1) Do these values alternate White/Black?
2) The For loop seems to generate 7 sets of values. What do
these values represent?
Many thanks,
Chris
- [Bug-gnubg] SGF code question,
Chris Wilson <=