Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Delphi and the UCI Protokoll

Author: Tony Werten

Date: 04:13:08 04/19/02

Go up one level in this thread


On April 18, 2002 at 18:20:10, Martin Bauer wrote:

>Hi,
>
>has anybody experience with Delphi and the new UCI Protokoll?

You're doing it the easiest way. Have a look here

http://www.cs.unimaas.nl/~werten/delphi/delphi_winboard.txt

Tony

>
>In my small chess program it works so far, but I have a some problems i want to
>fix. They are very Delphi specific.
>
>First problem:
>
>commands are closed by \n (=ASCII #10). But the readln command of delphi expects
>#13#10. I did a work around with something like that:
>
>var c : char; s : string;
>repeat
>  read(c);
>  s := s + c;
>until #10
>
>now s is the command. But that looks not nice.
>
>second problem:
>the engine must always be able to process input from stdin, even while thinking.
>
>What is the best and efficient way to do this?
>
>I tried a timer, this works fine if the program is running without fritz, but
>with fritz the times stand still while calculating. May be this is a problem
>with the namesspace?
>
>Any better ideas?
>
>Bye
>
>Martin



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.