Search found 145 matches

by Fulvio
Thu Jan 10, 2019 7:27 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Writing bugs
Replies: 66
Views: 10557

Re: Writing bugs

chrisw wrote:
Thu Jan 10, 2019 6:34 pm
no, it's a more general problem ...
https://stackoverflow.com/questions/212 ... om-numbers
by Fulvio
Sun Dec 23, 2018 5:43 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI2WB 4.0
Replies: 82
Views: 10136

Re: UCI2WB 4.0

Ras wrote:
Sun Dec 23, 2018 1:17 pm
Fulvio wrote:
Sun Dec 23, 2018 12:19 am
Do you know any engine which will not handle the sequence of commands I posted?
Irrelevant.
Let's stop here.
I stand by my opinion: if an engine receives the sequence
"stop"
"setoption ..."
and decides to process "setoption" before interrupting the search, it's a bug in the engine.
by Fulvio
Sun Dec 23, 2018 5:39 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI2WB 4.0
Replies: 82
Views: 10136

Re: UCI2WB 4.0

if(!fromF && !ReadLine(fromE, line)) printf("tellusererror UCI2WB: %s died on me\n", binary), exit(0); You should check all the I/O!! What is that "ReadLine" without the size of the buffer? If the engine sends a line longer than 1024 bytes you have a buffer overflow! Please use a static analyzer li...
by Fulvio
Sun Dec 23, 2018 12:19 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI2WB 4.0
Replies: 82
Views: 10136

Re: UCI2WB 4.0

That will not be robust because it's implementation defined what then happens because the UCI protocol does not demand option settings to be buffered: The UCI protocol says that "all communication is done via standard input and output". UCI2WB use the standard c library and it is buffered (however ...
by Fulvio
Sat Dec 22, 2018 4:24 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: fast(er) movegen
Replies: 34
Views: 5640

Re: fast(er) movegen

Currently Embla implements an 8x8 array of pointers. You can try to use int8_t (representing indexes in an array) instead of pointers. This way the board will be read with a single cache request ( https://stackoverflow.com/questions/3928995/how-do-cache-lines-work ). The ChessPiece objects should a...
by Fulvio
Sat Dec 22, 2018 3:03 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI2WB 4.0
Replies: 82
Views: 10136

Re: UCI2WB 4.0

But the problem was that the GUI thread is not always able to immediately relay (translated) commands to the engine, as in UCI it is for instance not allowed to set options while the engine is thinking, and you first have to stop it and wait for 'bestmove' even if you decide to stop it immediately....
by Fulvio
Tue Dec 18, 2018 10:57 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI pondering done right
Replies: 52
Views: 5328

Re: UCI pondering done right

I find the UCI pondering spec truly horrible. It violate both UCI key principles, to the point that it feels like a piece of Winboard grafted on UCI: (1) statelessness. The UCI protocol is not stateless: https://en.wikipedia.org/wiki/Stateless_protocol For example when the engine receives a "positi...
by Fulvio
Fri Dec 07, 2018 8:40 am
Forum: Computer Chess Club: General Topics
Topic: Searching for GUI to display time usage coming from pgn file
Replies: 13
Views: 1433

Re: Searching for GUI to display time usage coming from pgn file

Thanks! I will try it, but so far I did not find how to find that time graph option? I downloaded Scid 4.64 and also found nothing in the help file. It is a new feature written by Uwe Klimmek a few months ago: https://sourceforge.net/p/scid/code/ci/d785abe9c2d99a217af41a530bd3d628577e149a/ It is av...
by Fulvio
Thu Dec 06, 2018 2:54 pm
Forum: Computer Chess Club: General Topics
Topic: Searching for GUI to display time usage coming from pgn file
Replies: 13
Views: 1433

Re: Searching for GUI to display time usage coming from pgn file

Guenther wrote:
Thu Dec 06, 2018 12:02 pm
Can it read standard pgn for this, because the screenshot only shows ugly CB style pgn for time? '[%clk ...]'
You can change the regular expression to fit your needs:
https://sourceforge.net/p/scid/code/ci/ ... s.tcl#l412
by Fulvio
Thu Dec 06, 2018 9:49 am
Forum: Computer Chess Club: General Topics
Topic: Searching for GUI to display time usage coming from pgn file
Replies: 13
Views: 1433

Re: Searching for GUI to display time usage coming from pgn file

RubiChess wrote:
Wed Dec 05, 2018 12:47 pm
I would like to work on time management in my engine and it would be helpful to have a tool that displays the time usage graph coming from a (cutechess-)pgn.
In SCID there is a graph with score and time:
https://a.fsdn.com/con/app/proj/scid/sc ... /max/max/1