[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] SGF code question
From: |
Joern Thyssen |
Subject: |
Re: [Bug-gnubg] SGF code question |
Date: |
Thu, 13 Mar 2003 20:44:12 +0000 |
User-agent: |
Mutt/1.4i |
On Thu, Mar 13, 2003 at 01:40:16PM -0600, Chris Wilson wrote
>
> 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?
Yes
> 2) The For loop seems to generate 7 sets of values. What do
> these values represent?
THe number of very bad, bad, doubtful, unmarked, interesting, good, and
very good moves.
Jørn