Search found 7 matches

by Kolarik
Fri Dec 31, 2010 1:20 am
Forum: Programming and Technical Discussions
Topic: Implementing UCI Protocol
Replies: 13
Views: 10305

Re: Implementing UCI Protocol

Well thank you for finding it but I have fixed the problem. There was an error in my position function that was incorrectly fixing the position so the engine was indeed sending illegal moves.

Thank you VERY much for all of your help with this engine. Ill make sure to put you in the credits.
by Kolarik
Thu Dec 30, 2010 6:58 pm
Forum: Programming and Technical Discussions
Topic: Implementing UCI Protocol
Replies: 13
Views: 10305

Re: Implementing UCI Protocol

"You might try logging the through-put to try to determine this."


How would I go about doing this?
by Kolarik
Thu Dec 30, 2010 12:19 am
Forum: Programming and Technical Discussions
Topic: Implementing UCI Protocol
Replies: 13
Views: 10305

Re: Implementing UCI Protocol

Ah. That was exactly the problem. I never realized that GUI would be unable to read directly from the command line.

However there is still a problem. Arena keeps saying that the engine is making an illegal move.
In the command line the text seems something like this.

User enters "go"

Engine ...
by Kolarik
Tue Dec 28, 2010 9:25 pm
Forum: Programming and Technical Discussions
Topic: Implementing UCI Protocol
Replies: 13
Views: 10305

Re: Implementing UCI Protocol

What do you mean by "flushing the output"?

From what we found, "Forcing all buffered output to actually be printed is known as "flushing" the stream." Is that not the same as the engine using the printf or cout commands to print text in the command line?
by Kolarik
Fri Dec 24, 2010 3:59 am
Forum: Programming and Technical Discussions
Topic: Implementing UCI Protocol
Replies: 13
Views: 10305

Re: Implementing UCI Protocol

The engine sends its response instantly. Unless there is some command that I am missing? As far as I can tell the engine only needs to receive the engine name author name then send "uciok" and "readyok". Here is a link to download the a compile of the engine if you want to take a closer look. http ...
by Kolarik
Thu Dec 23, 2010 9:37 am
Forum: Programming and Technical Discussions
Topic: Implementing UCI Protocol
Replies: 13
Views: 10305

Re: Implementing UCI Protocol

Essentially you need to do some sort of non-blocking I/O. This should be in various open-source engines, though I agree it can be rather tricky (and OS dependent). I think Crafty, Fruit, IvanHoe, Stockfish, and others all have examples. See posix.cpp of Fruit, and the input_available() function ...
by Kolarik
Tue Dec 21, 2010 1:42 am
Forum: Programming and Technical Discussions
Topic: Implementing UCI Protocol
Replies: 13
Views: 10305

Implementing UCI Protocol

Hello All,

My friend and I are currently working on coding an engine from scratch. We have almost complete a very simplistic version but we are currently having trouble with implementing the UCI protocol. We have no idea how to create the PV and dump it to the GUI. Also, we have no idea how to make ...