Computer Chess Club Archives


Search

Terms

Messages

Subject: Winboard Protocol Questions

Author: Matt Thomas

Date: 05:08:41 12/29/03


I am creating an input queue for my chess engine and have most the protocol
commands handled okay.  I question the correct usage of the variants feature.
The goal is to advise Winboard that only standard chess games are to be played,
no bughouse or whatever.  Is the correct usage?:  feature variants="normal"

I have all my features wrapped up into a single string with spaces between each.
 This string will be sent to stdout with a quoted escape sequence for strings. A
brief example of its code appearance:

char * str = "feature ping=1 setboard=1 variants=\"normal\" colors=0\n";

The protocol mentions that I can send features as a group, but I just want to
verify it is expected a string formatted as such.  I am using a single \n at the
end -this would seem to make sense.

So far I feel good about the code so far and have a plan for handling input
without it eating many clock cycles during pondering/move search.  Its been a
while since I used C/C++ for anything, especially console apps and it feels good
to get back into it.  I've been spoiled by VB6.  Its nice to have to think in
depth again.

Thanks, -Matt   mbox1@alltel.net



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.