Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Communication between two program versions

Author: Dieter Buerssner

Date: 13:32:37 09/07/00

Go up one level in this thread


On September 07, 2000 at 10:41:19, Leen Ammeraal wrote:

>On September 07, 2000 at 10:15:11, Dieter Buerssner wrote:
>
>>On September 07, 2000 at 01:36:51, Leen Ammeraal wrote:
>>
>>>To find out if my new chess program version is
>>>stronger than my old one, I usually let
>>>them play against each other, acting as
>>>an operator myself to perform the moves.
>>>These two programs play on the
>>>same computer (under Windows 98). I would
>>>very much like to let them communicate automatically.
[...]
>>It can be done quite nicely with the help of Winboard. I think, it shouldn't
>>be too difficult to implement the winboard protocol. For basic functionality
>>only a few commands are needed.
>
>Thank you for your answer. I downloaded Winboard some time
>ago, but if I remember well, programmers were not encouraged
>in its documentation to connect it to their own
>programs, or at least were warned
>about the difficulties involved.

Perhaps I misunderstand you, but I got quite a different feeling. Why should it
be discouraged? You really don't have to connect to Winboard. Winboard
communicates with the chess engine by stdin and stdout (cin, cout). Instead
of typing in moves, Winboard sends them to your engine. When your engine
has found the answer, it sends them to winboard. This all can be done by
Standard functions (C or C++). In C you can essentially do
printf("move e2e4\n"); fflush(stdout);
to send a move to Winboard. Winboard then sends the same move to the opponent
engine, where it can be read from stdin by (for example) fgets().
The protocol used is described in the Winboard distribution.

>I assume that I should first
>use Winboard in connection with my program, before
>considering using this auto232 protocol of Remi Colom, to
>which Tim Mann refers, or am I wrong?

Can't really comment on auto232, but I've heard, that it works very similar
to Winboard from the view of the chess engine.

>So far, my program
>(Queen) is a stand-alone Windows application.

I only have experience with Windows console applications and Winboard.
If you use Windows specific functions to operate your Queen, things
might get much more complicated.

Regards,
Dieter



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.