Search found 146 matches

by Fulvio
Fri Jan 11, 2019 2:17 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: PGN - Comment including the } char
Replies: 5
Views: 843

PGN - Comment including the } char

The PGN standard says: "Comment text may appear in PGN data. There are two kinds of comments. The first kind is the "rest of line" comment; this comment type starts with a semicolon character and continues to the end of the line. The second kind starts with a left brace character and continues to th...
by Fulvio
Thu Jan 10, 2019 7:27 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Writing bugs
Replies: 66
Views: 10868

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: 10401

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: 10401

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: 10401

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: 5805

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: 10401

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: 5575

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: 1486

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: 1486

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