Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: question about ReadPGN of Crafty

Author: Andrew Platt

Date: 17:09:00 09/20/04

Go up one level in this thread


On September 20, 2004 at 19:40:23, Uri Blass wrote:

>I see that Crafty handle FEN by the following  command
>
>else if (strstr(input_buffer,"FEN"))
>		{
>          sprintf(buffer,"setboard %s",value);
>          (void) Option(local[0]);
>          continue;
>        }
>        return(1);
>
>I do not understand what it exactly does and what does Option (local[0]) does.
>
>Uri

It's faking a setboard command and passing that to the Option routine that
processes input; Option reads from the variable 'buffer'. The Option routine
takes a parameter which is the current tree; I'm not that familiar with Crafty's
SMP code but it looks like that would be the main tree.

Andy.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.