Search found 317 matches

by Roland Chastain
Fri Aug 28, 2020 8:19 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 57
Views: 17463

Re: c-chess-cli

Hello! I have just made a new test, with the latest code from the GitHub repository. test.sh ./c-chess-cli -cmd /home/roland/Applications/moteurs/slowchess/classic/22/slow64_linux:/home/roland/Applications/moteurs/alouette/012/alouette64 \ -tc 2+0.02 \ -games 2 \ -concurrency 1 \ -pgnout out.pgn \ -...
by Roland Chastain
Thu Aug 27, 2020 4:20 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 57
Views: 17463

Re: c-chess-cli

lucasart wrote:
Wed Aug 26, 2020 11:43 pm
Illegal move by Moustique. Black receives the position after f1g2, and plays f1g2 itself ?
Indeed. Thank you for the explanation.
by Roland Chastain
Wed Aug 26, 2020 6:30 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 57
Views: 17463

Re: c-chess-cli

Fixed. I was running the programs with no arguments (ie. argc=0 instead of argc=1). This caused problems for some programs (including SF), which -rightfully- expect at least argv[0]. Good! Indeed the problem is solved. But there is another problem now. :) mytest.sh ./c-chess-cli -cmd /home/roland/A...
by Roland Chastain
Tue Aug 25, 2020 8:36 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 57
Views: 17463

Re: c-chess-cli

I had to reinvent the shell a little: First the a:b syntax reserves the ":" character, which is legal in file names, or command line arguments, so that's no good. Now a and b can contain ":" provided it is escaped "\:". Second, a and b may contain spaces, and to make matters worse, the space charac...
by Roland Chastain
Sun Aug 23, 2020 4:05 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 57
Views: 17463

Re: c-chess-cli

Actually, this will break something that worked before... What if the user enters a string value containing spaces (using proper syntax to escape spaces in the shell), like so: "python ./engine.py" ? The new logic of reading the current working directory, as everything before the last "/", results ...
by Roland Chastain
Sat Aug 22, 2020 7:17 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 57
Views: 17463

Re: c-chess-cli

There is one little trick to be aware of though. In order to capture the stderr of engines along with stdout, c-chess-cli puts them all in the same file using dup2() system call. This replicates the "2>&1" syntax in bash. So it is possible that SlowChess wrote the error message in stderr without \n...
by Roland Chastain
Fri Aug 21, 2020 2:23 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 57
Views: 17463

Re: c-chess-cli

Indeed, it doesn't change the current directory. So the path you give "openingBook/TestBook.scb" has to be either absolute, or relative to the current directory. I could make engine engine use their own directory as current directory, which is probably what users expect. Thank you for your answer. ...
by Roland Chastain
Fri Aug 21, 2020 7:39 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 57
Views: 17463

Re: c-chess-cli

Very interesting project. I have just made a first quick test. One engine doesn't find its opening book, and this results in the following problem: SlowChess Blitz Classic 2.1 <- ucinewgame deadline set: SlowChess Blitz Classic 2.1 must respond by 55389187 SlowChess Blitz Classic 2.1 <- isready Slow...
by Roland Chastain
Wed Aug 05, 2020 6:17 am
Forum: Computer Chess Club: General Topics
Topic: Clericus/Hopeless ported to Lazarus
Replies: 11
Views: 1087

Re: Clericus/Hopeless ported to Lazarus

Here is the Windows 0.49.0.4 build with the latest changes and it has the Hopeless (xboard) and Clericus (gui) executable inside. I'll work on the Mac build soon. I tested it in Arena with time control of 5"+1" and it works now. Perfect. Thank you. Not yet had time to create the new release on GitL...
by Roland Chastain
Mon Aug 03, 2020 5:37 am
Forum: Computer Chess Club: General Topics
Topic: Clericus/Hopeless ported to Lazarus
Replies: 11
Views: 1087

Re: Clericus/Hopeless ported to Lazarus

Please let me know if you want me to do another build with the changes for time control. Should I also post a Clericus build while I am at it? I also have Lazarus installed on a MacOS laptop here so I will also try to make a Mac build but I will need to install a chess GUI to test it before I post ...