Computer Chess Club Archives


Search

Terms

Messages

Subject: Engine programming - standard input

Author: Matt Thomas

Date: 02:08:14 12/03/03


I want to create a chess engine and am starting with the input/output routines.
I can handle output, but am not sure about how to implement input.  I am
thinking to use ReadFile() to be unbuffered, and for pipes.  I could implement a
loop to poll for input, but wouldn't that be a drag on CPU cycles?  I want to be
able to use pondering, but if the user decided to cancel the game I need to
listen for the command.  I am going to use the Winboard protocol and understand
the commands.  I am using VC6 to create a console app and am familiar with
creating a basic program in Windows/console/DOS.  Any help would be much
appreciated.  Examples would go a long way.  I have looked at some code for
other chess programs, but there is so much to sift thru and I want to focus
specifically on understanding the basics of implementing std input.  Thanks,
Matt



This page took 0.01 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.