Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How I can comunicate mu chess engine to Winboard?

Author: Bas Hamstra

Date: 08:00:28 09/04/99

Go up one level in this thread


You can have a quick start very fast. The idea is that what you printf to the
screen, Winboard picks up. On the other hand you can pick up what winboard sends
you by scanf(). This is possible because Winboard redirects your i/o via pipes.

Now all you have to do (for a quick start) is send a move to winboard:

printf("1. e2e4");

and after that move is sent listen for a move with scanf(). With very little
work you can already play. However if you want to support more features, like
resuming stored games and thinking on the opponents time, it is some more work.

To send and receive the right format you have to read engine_intf.txt which
comes with the free winboard.

You can set a debug option in winboard, that prints ALL messages to a debug
file. You can practice against GNU (it comes with winboard). If that works, it
should work on a internet chess server too. So download winboard and read
engine_intf.txt, all you need is there.



Regards,
Bas Hamstra.





On September 04, 1999 at 10:18:45, Nicolas Carrasco wrote:

>Dear Friends,
>
>I would be extreamly please to know how to comunicate my chess engine to
>Winboard. If anyone can send me any info, please post it here ro send it to my
>e-mail (nicolas@carrascosys.com).
>
>Thanks
>
>PS: I am using C language to my game and Visual C++ 6.0 compiler.



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.