How to output xboard analysis info ?

Discussion of chess software programming and technical issues.

Moderator: Ras

Chan Rasjid
Posts: 588
Joined: Thu Mar 09, 2006 4:47 pm
Location: Singapore

How to output xboard analysis info ?

Post by Chan Rasjid »

Hello,

All engines I have could print updated analysis mode info to the output window for xboard linux. But my engine cannot display any analysis info. I have tried setvbuf(stdout, NULL, _IONBF, 0) and setbuf(stdout, NULL) but still nothing prints to the output window. But printing to the my polyglot log file is ok.

Does anyone know what is wrong.

Best Regards,
Rasjid
User avatar
Giorgio Medeot
Posts: 52
Joined: Fri Jan 29, 2010 2:01 pm
Location: Ivrea, Italy

Re: How to output xboard analysis info ?

Post by Giorgio Medeot »

Hi,
have you tried to fflush()?

Also take a look at: http://www.open-aurec.com/wbforum/WinBo ... ntf.html#6

It is a little boring having to call fflush after every output, but I simply wrote my own function which prints whatever to stdout via the usual printf() stuff, and then call fflush() before returning.

HTH,
  • Giorgio
User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to output xboard analysis info ?

Post by hgm »

It sounds like Polyglot does not recognize your output as something that should be relayed. Which usually means it s not really compliant with the UCI standard.

Are you sure you send all information that belongs to the PV in one info command?

It is a bit hard for people to guess what is wrong if you fail to post the logs...
Chan Rasjid
Posts: 588
Joined: Thu Mar 09, 2006 4:47 pm
Location: Singapore

Re: How to output xboard analysis info ?

Post by Chan Rasjid »

hgm wrote:It sounds like Polyglot does not recognize your output as something that should be relayed. Which usually means it s not really compliant with the UCI standard.

Are you sure you send all information that belongs to the PV in one info command?

It is a bit hard for people to guess what is wrong if you fail to post the logs...
This is a difficult puzzle to solve!

Just solved it. Mine is a UCI engine that connects to xboard through polyglot. It did an unwanted favor for polyglot by converting the pv-line from algebraic to SANS notations; but UCI accepts only algebraic !

Thanks,
Chan Rasjid.
User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to output xboard analysis info ?

Post by hgm »

Indeed. If you would have posted the offending output, we could have told you that immediately. But it is difficult to _guess_ you would be using SAN...