Search found 876 matches

by Ras
Thu Aug 22, 2019 5:11 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Sending pure comments using UCI protocol
Replies: 7
Views: 267

Re: Sending pure comments using UCI protocol

Maybe a info comments .... sequence could be helpful in the protocol ? The "info string" sequence already allows any free form comments. If the issue is that the GUI shall not evaluate the strings in any way, the easiest solution would be not to send them. Extending UCI is pretty much out of questi...
by Ras
Wed Aug 21, 2019 2:35 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Sending pure comments using UCI protocol
Replies: 7
Views: 267

Re: Sending pure comments using UCI protocol

Because I am a little scared by the following specification * if the engine or the GUI receives an unknown command or token it should just ignore it and try to parse the rest of the string. "unknown command" refers to a full line ? or just a word ? The very next line in the UCI spec holds the answe...
by Ras
Sun Aug 11, 2019 1:23 pm
Forum: Computer Chess Club: General Topics
Topic: Chess for Android: Quick Castling/En-passant
Replies: 7
Views: 365

Re: Chess for Android: Quick Castling/En-passant

I actually implemented it this way on purpose, since these are the official FIDE rules. For castling yes. But for capturing a piece, you can take first the piece and then place your own piece. It's just that the touch-move rule applies, i.e. if you touch an opponent's piece without announcing "j'ad...
by Ras
Fri Aug 09, 2019 2:20 pm
Forum: Computer Chess Club: General Topics
Topic: Why are chess computers no longer important?
Replies: 6
Views: 797

Re: Why are chess computers no longer important?

Reasons: 1) most high-end dedicated units in the 80s were on Motorola 68k, but it was Intel's x86 who won the race. Mostly because 68k was used in home computers where most games wouldn't work with more than 68k at 8 MHz, so nobody bought faster models, so Motorola couldn't sell them. 2) once CPUs s...
by Ras
Sat Aug 03, 2019 9:29 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Using Link-Time-Optimization in mingw/gcc: Any experience?
Replies: 7
Views: 980

Re: Using Link-Time-Optimization in mingw/gcc: Any experience?

RubiChess wrote:
Fri Aug 02, 2019 4:15 am
It turns out that the call to getline(cin, inputsting) in the UCI input loop causes the segmentation fault
How does that even compile? According to http://man7.org/linux/man-pages/man3/getline.3.html , the prototype looks like this:

Code: Select all

ssize_t getline(char **lineptr, size_t *n, FILE *stream);
by Ras
Sun Jul 28, 2019 7:30 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: On-line engine blitz tourney July
Replies: 33
Views: 2687

Re: On-line engine blitz tourney July

Maybe it would be a good idea to truncate overly long input lines at the earliest point possible to fix this once and for all. Besides, a server program crashing upon input data is a potential security vulnerability. The pasted line example is slightly more than 1 kB, so this looks like a promising ...
by Ras
Mon Jul 08, 2019 8:09 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need help to make Crafty work
Replies: 31
Views: 2503

Re: Need help to make Crafty work

* Banksia sends a 'cores' command, but Crafty did not specify 'feature cores=1' Does it have to? From http://hgm.nubati.net/CECP.html : cores N Specifies the engine can use at most N search threads in is parallel search. Only sent when the engine requested it through feature smp=1. And from the log...
by Ras
Sun Jul 07, 2019 4:50 pm
Forum: Computer Chess Club: General Topics
Topic: UCI_Elo
Replies: 49
Views: 3916

Re: UCI_Elo

Does anyone know of what is the base engine and rating of UCI_Elo? In my case (CT800), it's basically a hack to get some sort of throttling. I did some tests for figuring out elo vs. speed and settled for about 56 Elo per doubling above 2100 and 80 Elo below that. This is because going from 5 plies...
by Ras
Sat Jul 06, 2019 9:05 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Xboard, CECP, how to handle long inits
Replies: 20
Views: 1883

Re: Xboard, CECP, how to handle long inits

The UCI equivalent of 'feature done=1' is 'uciok'. No, it isn't. "uciok" is only meant for acknowledging UCI mode, not for doing init. Therefore, "uciok" has to appear quickly after the GUI sent "uci", and lengthy init stuff is not allowed. "isready" is meant as ping/pong replacement AND feature do...
by Ras
Mon Jun 17, 2019 9:32 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: UCI2WB 4.0
Replies: 82
Views: 8337

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...