Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: UCI-Dialog

Author: Rafael Andrist

Date: 08:28:42 09/24/03

Go up one level in this thread


On September 24, 2003 at 01:43:42, Martin Schreiber wrote:

>Hi,
>
>i try to make my chess engine UCI-compatible, but i have problems. If the GUI
>sends the infos for the time-controls, it's possible that there is a "movestogo"
>info. With which C++-code i can check, if there such a info.
>With the simple code:
>cin >> guicommand;
>i have no chance, because if there no "movestogo" info, my engine stops.

You should read in the complete line and then examine the string (or char
array). It is also possible that the GUI sends the infos in the string in a
different order, e.g. "go movestogo 40 wtime 300000 btime 300000 winc 6000 binc
6000\n"

regards
Rafael B. Andrist



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.