Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: UCI protocol question

Author: Tord Romstad

Date: 06:32:09 10/05/05

Go up one level in this thread


On October 05, 2005 at 09:17:46, Joachim Rang wrote:

>I read controversial claims. Some say it is not possible or at least not easy
>other they it is easy to detect. As a non-programmer I think one could just
>check whether the next position to search is a legal game continuation. If it is
>not the previous game is over.

This is possible, but in my opinion somewhat ugly.  One of the main points
of the UCI protocol is that the chess engine is supposed to be a stateless
program.  It just receives positions to analyse, and is not even supposed to
be aware of the fact that it is playing a game.  All moves are repeated
for each position, and the engine is not required to remember the moves or
the state of the game between each time it is instructed to start thinking.

I would prefer if the GUI could send the whole game and the result when
the game is finished, for instance by a new "game" command.  At the end of
the game, the GUI could send something like this to the engine:

game result 0-1 moves e2e4 d7d5 e4d5 d8d5 e1e2 d5e4

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.