Search found 3033 matches

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

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

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

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

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: 57
Views: 16270

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

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

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...
by lucasart
Sun Aug 30, 2020 4:28 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Engine Crash Detective Story
Replies: 24
Views: 4358

Re: Engine Crash Detective Story

The evil thing that caused the crash that made it so hard to find was that the struct was passed by reference. If it were: foo->bar = value; you might immediately expect it could cause trouble in the caller. I did not look at the signatures closely enough and each and every one was a pass by refere...
by lucasart
Sun Aug 30, 2020 2:58 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Engine Crash Detective Story
Replies: 24
Views: 4358

Re: Engine Crash Detective Story

Hi all. Recently I investigated a bug that caused my engine to crash in about 10 games of a 4,000 game tournament. One of those frustrating bugs that's not reproducible by a specific position or sequence of UCI commands. Rare enough that I kept putting off investigating it in favor of working on co...
by lucasart
Sat Aug 29, 2020 8:26 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 57
Views: 16270

Re: c-chess-cli

Good point. Well then, that gives me another excuse to be lazy, and not implement ping in c-chess-cli. "isready" is still useful during the config phase to wait with new commands until lengthy ones are finished, like setting up EGTBs. Otherwise, you might start a game right away and erroneously sub...