I am attempting to write my own chess engine and I would
like it to be able to communicate with winboard. I have been reading
this FAQ: http://tim-mann.org/xboard/engine-intf.html
, on your site and have been unsuccessful so far. I was hoping the sample code by Tony Werten,
http://www.tim-mann.org/winboard/delphi.txt, would be able to help but it doesn't appear to be in C++.
My question is: do I need to do anything special to send a
message to Winboard? The faq suggests that I do not need to use ports
or anything advanced except handling signals. But every message I send
to Winboard seems to be ignored. I am using printf, and I have tried to
flush the buffer. Maybe you could help me along?
The code I have so far is very small. All it does is starts a
loop and waits for the new command, or quit command. Once it receives
this 'new' command it attempts to make the move c2 to c4. I set the
computer to white as soon as Winboard is loaded, but the move is not
made. I am not sure if the problem is Winboard not hearing my programs
command, or my program not putting the command in the right format. I
have tried the following commands: 'move c2c4\n', 'c2c4\n', as well as
replacing '\n' with character number 10.
I would really appreciate any help you can give me on this.
Thanks, Brett Verhagen
[Prev in Thread]
Current Thread
[Next in Thread]
[Bug-XBoard] communicating with winboard,
Brett Verhagen<=