Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Engine programming - standard input

Author: Tord Romstad

Date: 10:42:24 12/04/03

Go up one level in this thread


On December 04, 2003 at 01:08:17, Matt Thomas wrote:

>Thanks for helping me out.  My goal is to create a Winboard compatable engine
>only, no GUI at the moment, but probably later.  I can always use Shredder for
>the GUI.  This way I can focus more on the internals.  Thanks for the code
>samples, it will help me to get a better idea of how I can handle input. Polling
>I understand from the dos days of programming, but threads are now available and
>I like what they have to offer.

I use polling in my current engine, but consider giving threads a try in the
new engine I am developing.  It might be a bit cleaner, and learning to use
threads can be useful if I some day decide to make a parallel engine.

What's the best place to look to learn about using threads in C?

>Looks like my next step will be designing a
>thread strategy.  This is looking fun!  I have to review the various
>input/output commands to see which I prefer.  I am using VC6/Windows, but I do
>have Mandrake and may want a portable solution, so I may have to choose my
>commands carefully.  I just wish there were more shared commands between the
>various standards.  One big standard would be nice.  At least the choice to use
>Winboard was easy.  I looked at UCI, but I prefer WB's methods.

I agree that WB is the best choice if you only implement one protocol,
partly because it is by far the most widespread.  But it is easy to support
both in the same executable.  If you have working WB support, you should
be able to add UCI support in a few hours.

Tord




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.