Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Where do you include winboard stuff in your program?

Author: Jon Dart

Date: 06:34:23 12/15/04

Go up one level in this thread


Arasan deals with some of these issues by having a callback
function - when the Search class is created, register_command_function()
is called, passing in a callback function pointer. There is a small
amount of input reading code in the search module, but once a
winboard command is received, the search module calls the callback
function to process it. There are actually several callback functions ..
this enables me to keep most of the winboard code in a single module
and not clutter up the search module with it, or resort to globals for
context passing.

I also have a separate exe I built that has no winboard interface
at all but can only run test suites, so in this case most of the
callbacks are NULL.

--Jon



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.