Search found 867 matches

by Ras
Mon Jun 17, 2019 9:32 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI2WB 4.0
Replies: 82
Views: 4250

Re: UCI2WB 4.0

I usually do this through polling during the search with PeekNamedPipe(), and I don't see how I would need to do that any different to handle UCI. Well yeah, that will also work, and probably via ioctl() under Linux. You'll need some sort of node based internal timer anyway to avoid checking the cl...
by Ras
Mon Jun 17, 2019 4:59 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI2WB 4.0
Replies: 82
Views: 4250

Re: UCI2WB 4.0

This is all handled in the common code of WinBoard and XBoard Oh, I didn't realise it's a common base, though that makes sense of course. but of a engine is hanging, using CPU, what can you do? Shouldn't happen with UCI because isready and stop need to be evaluated during search, and the only clean...
by Ras
Mon Jun 17, 2019 2:33 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI2WB 4.0
Replies: 82
Views: 4250

Re: UCI2WB 4.0

I guess a command-line parameter of the adapter could be used to request the engine priority I'd still guess that this isn't necessary on Windows at all because you get that dynamic priority boost upon mouse / keyboard events, or whenever a thread wakes up from some wait (on event, network, I/O or ...
by Ras
Sun Jun 16, 2019 10:04 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI2WB 4.0
Replies: 82
Views: 4250

Re: UCI2WB 4.0

I also don't like the lowering of engine priorities to be applied to the adapter, but I don't know how it can be applied by the GUI to the engine without applying it to the adapter first. Is it the adaptor that actually launches the engine process for UCI engines? If so, you could start the adaptor...
by Ras
Sun Jun 16, 2019 8:47 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Explanation of the Cute Chess message 'connection stalls'
Replies: 15
Views: 416

Re: Explanation of the Cute Chess message 'connection stalls'

When I look at alouette.pas, the parser for the "go" command is not really implementing the UCI spec. The order of arguments is not specified, but you rely on it in utils.pas. Also, the case where wtime, btime, winc, binc AND movestogo is given seems to be missing. I'd suggest that you do a WordPres...
by Ras
Fri Jun 14, 2019 1:30 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI2WB 4.0
Replies: 82
Views: 4250

Re: UCI2WB 4.0

Perhaps it floods WinBoard with unintended output which overruns some buffer. A function like this (from UCI2WB) looks like a buffer overflow waiting to happen: int ReadLine (FILE *f, char *line) { int x, i = 0; while((x = fgetc(f)) != EOF && (line[i] = x) != '\n') i++; line[++i] = 0; return (x != ...
by Ras
Mon Jun 10, 2019 11:16 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hash collision?
Replies: 42
Views: 1464

Re: Hash collision?

The total size of the table only comes in when the the table only gets partly filled. Yeah I have to agree. In that case, my objection was wrong. (you tacitly assume that by taking it for granted that a key length of 64 bits is enough to have no key collisions) That's an unrelated issue for the pro...
by Ras
Sat Jun 08, 2019 1:38 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Is this hard ?
Replies: 13
Views: 451

Re: Is this hard ?

My engine has this: 2/04 0:00 +4.78 1.g6 Rg1+ 2.Kf5 Rg3 (908) 4 TB:4 3/04 0:00 +4.79 1.g6 Kd6 2.h5 Kd5 (1.552) 7 TB:10 4/07 0:00 +4.84 1.g6 Rg1+ 2.Kf5 Rh1 3.g7 Rf1+ 4.Kg6 (5.136) 23 TB:22 5/07 0:00 +4.46 1.g6 Rg1+ 2.Kf4 Rxg6 3.f8Q+ Kxf8 4.Bxg6 (15.311) 69 TB:62 6/07 0:00 +4.46 1.g6 Rg1+ 2.Kf4 Rxg6 3...
by Ras
Sat Jun 08, 2019 1:35 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hash collision?
Replies: 42
Views: 1464

Re: Hash collision?

Take the other extreme: A hash table that stores a single entry. Yeah then you would need to store the full 64 bit signature. Basically, the information stored is the length of the signature plus the implicit index bits minus the bucket length bits. Of course, you have to store bits that are not al...
by Ras
Sat Jun 08, 2019 1:19 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hash collision?
Replies: 42
Views: 1464

Re: Hash collision?

The total size of the table has no influence on any of this. I don't agree. Imagine you had enough memory for a table with 2^64 entries, then you wouldn't need to store a signature at all because the full signature itself is only 64 bit (usually) so that the signature would be identical to the inde...