Computer Chess Club Archives


Search

Terms

Messages

Subject: UCI question

Author: Alex Ptole

Date: 02:35:58 03/03/05


Hello. I am a amateur in chess programing und would like to ask something about
the UCI protocol. In order to see how it workes I have written a small UCI
program that must answer to commands that are sent by the GUI (Fritz 7). But the
GUI (Fritz 7) did not recognize it as an UCI application :( So it can not  run
under Fritz GUI.
Could you tell me please what is the problem and how can you do it properly ?
THANK YOU IN ADVANCE!
Here is the source code of the program written in Delphi:
---
program Pconsole;
{$APPTYPE CONSOLE}
uses
  SysUtils;

var pock: string;

begin
While true do
 begin
 readln (pock);
 if pock = 'uci' then
  begin
   writeln ('id name testUCI');
   writeln ('id author Alex N.');
   writeln ('option name Hash type spin min 1 max 32 default 15');
   writeln('uciok');
  end;

 if pock = 'isready' then
  writeln ('readyok');

 if pock = 'quit' then
  halt;
 if pock = 'go' then
  writeln('bestmove e2e4');

if pock = 'stop' then
 writeln ('bestmove d2d4');

end;
end.
---



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.