Search found 3036 matches

by lucasart
Sat Oct 31, 2020 1:30 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 62
Views: 19781

Re: c-chess-cli

1) Adjustable log level. I'd like to choose between full log, or errors only. In the latter case, ideally only generating log files upon the first error in a thread. Like "-log errors" and "-log all" or so, possibly with some well-defined default if "-log" is given without log level. Typically erro...
by lucasart
Sat Oct 31, 2020 12:24 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 62
Views: 19781

Re: c-chess-cli

3/ no tournaments yet. just started working on it. first i need to revamp the command line parsing logic to replicate that of cutechess-cli. the whole -option value1[:value2], doesn't work well in the context of N engines. c-chess-cli is now capable of running tournaments. Gauntlets only for now, R...
by lucasart
Mon Oct 26, 2020 12:21 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 62
Views: 19781

Re: c-chess-cli

3/ no tournaments yet. just started working on it. first i need to revamp the command line parsing logic to replicate that of cutechess-cli. the whole -option value1[:value2], doesn't work well in the context of N engines. c-chess-cli is now capable of running tournaments. Gauntlets only for now, R...
by lucasart
Sun Oct 18, 2020 11:11 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Engine playing twice the same move in a CuteChess tournament
Replies: 8
Views: 663

Re: Engine playing twice the same move in a CuteChess tournament

Hello! Sometimes, with CuteChess, I have games ending by illegal move, and when I look into the PGN, I see that the engine seems to have played twice the same move consecutively. It happens with several engines, some engines of mine, and some other. Until now I didn't manage to understand what happ...
by lucasart
Tue Oct 13, 2020 5:59 am
Forum: Computer Chess Club: General Topics
Topic: Future of computer chess: 2 top engines?
Replies: 34
Views: 2780

Re: Future of computer chess: 2 top engines?

AndrewGrant wrote:
Tue Oct 13, 2020 5:38 am
Igel author himself is renting out machines to do it.
Smart move. In a gold rush, sell shovels :lol:
by lucasart
Tue Oct 06, 2020 11:55 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need some C++ string help please
Replies: 9
Views: 870

Re: Need some C++ string help please

Given my memory disability all anyone had to do was reply. "strtok" And they would have saved me a days work. :( There were some bad choices made in the design of the C standard library, and strtok() is probably the worst among them. If you're a casual programmer who doesn't care too much how it wo...
by lucasart
Tue Oct 06, 2020 4:37 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need some C++ string help please
Replies: 9
Views: 870

Re: Need some C++ string help please

Found getline which does what I wanted to do. So I think I got it. Yes, the best code is the code you don't write. Use std::getline in C++, or getline in C (POSIX only though). If you want to reinvent getline, here are the important ingredients: * buffer can't be a fixed size array, you must reallo...
by lucasart
Thu Oct 01, 2020 12:02 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 62
Views: 19781

Re: c-chess-cli

Now that I've changed back to the Linux camp, I'm using c-chess-cli and like it! :) Some questions that aren't entirely clear from the documentation: 1) -random and -repeat are not mutually exclusive, right? 2) -depth isn't described, but I guess it's for fixed depth search? 3) Is it for exactly tw...
by lucasart
Tue Sep 15, 2020 12:35 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: SMP, first shot at implementation
Replies: 53
Views: 4902

Re: SMP, first shot at implementation

I think I stand by what I said in the past.IIRC with the XOR trick I measured nearly no collision, since the writes are atomic. It doesn't change the fact that everything surrounding the hash table is inherently unsafe - funnily this does not even change using safe Rust only, although one might tri...
by lucasart
Mon Aug 31, 2020 5:55 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Engine Crash Detective Story
Replies: 24
Views: 5480

Re: Engine Crash Detective Story

My priority is this regard is to eliminate all the color-specific code I have in my evaluation method. Also, remove duplicate code that controls sliding piece move generation and attack counts. Too much copy / paste / renaming of variables there. I need to generalize that code. In my experience, th...