Search found 285 matches

by Cardoso
Fri Jul 03, 2020 5:08 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Testing Move Order Quality
Replies: 9
Views: 491

Re: Testing Move Order Quality

Ty :) I have a few set positions I run tests against and I'd say the average depth I reach for these is 10 (I only have null move pruning, no other pruning or reduction method at this time). When using the if(depth > 7 * PLY), there are a lot of zeros in the report. So, I tried if depth > 3 * PLY. ...
by Cardoso
Tue Jun 30, 2020 10:04 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Testing Move Order Quality
Replies: 9
Views: 491

Re: Testing Move Order Quality

Same here, I never took the stats per depth but have noticed long ago that if I gather move ordering from all depths then my move ordering isn't great, but if I restrict the gathering to above 5*PLY or 9*PLY then things look fantastic for move ordering. Interesting... basically, are you saying to n...
by Cardoso
Tue Jun 30, 2020 1:37 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Testing Move Order Quality
Replies: 9
Views: 491

Re: Testing Move Order Quality

My experience is also that it is very useful to take the stats per depth, as otherwise everything will be dominated by the lowest depth (i.e. QS). Same here, I never took the stats per depth but have noticed long ago that if I gather move ordering from all depths then my move ordering isn't great, ...
by Cardoso
Wed Jun 17, 2020 4:28 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Removing bugs from bug free functions
Replies: 20
Views: 1094

Re: Removing bugs from bug free functions

Thank you all for your help, as soon as I get some free time I'll try again.
best regards,
Alvaro
by Cardoso
Tue Jun 16, 2020 10:43 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Removing bugs from bug free functions
Replies: 20
Views: 1094

Re: Removing bugs from bug free functions

Do you have a public repository? Thanks Dann for the helping spirit, I dont have a public repository because I'm competing against two other programs, Triturator from Spain and Aurora Borealis from Russia. It's OK, I've been making a match against Aurora Borealis from Russia, I think we have played...
by Cardoso
Tue Jun 16, 2020 8:09 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Removing bugs from bug free functions
Replies: 20
Views: 1094

Re: Removing bugs from bug free functions

Thanks Rasmus, I accept that! But with optimizations disabled and the nonsense code disabled the engine doesn't crash and no errors are reported. Now I turned full optimization again and activated the nonsense code and made a test using CheckPositionCoherence() at every ply in the search and eval, a...
by Cardoso
Tue Jun 16, 2020 4:46 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Removing bugs from bug free functions
Replies: 20
Views: 1094

Re: Removing bugs from bug free functions

Another update, after turning on maximum optimizations O2, and without error checking, CheckPositionCoherence() at the root detects errors and the engine crashes as expected, but after adding the code below in CanBeCapturedByEnemyMen() all problems are gone, except speed of course wich is lower sinc...
by Cardoso
Tue Jun 16, 2020 3:43 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Removing bugs from bug free functions
Replies: 20
Views: 1094

Re: Removing bugs from bug free functions

Update on this, I removed all the error checking code and compiled the engine with all the optimizations disabled. The engine ran perfectly without crashes, only slower. So it looks to be a problem with the compiler optimizations, witch is what I've been seeing on all these years. But as soon as I e...
by Cardoso
Tue Jun 16, 2020 3:19 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Removing bugs from bug free functions
Replies: 20
Views: 1094

Re: Removing bugs from bug free functions

Thank you for all the input. Why "... & Free"? Why not "... & Men(color)"? The enemy usually can't capture on an empty square? My engine is a spanish checkers engine. Also Men() and Free are #defines to substitute bitboard variables in pos data structure, for easier code reading. The only variable n...
by Cardoso
Tue Jun 16, 2020 1:44 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Removing bugs from bug free functions
Replies: 20
Views: 1094

Removing bugs from bug free functions

Over the years I've been experiencing some weird behavior from the MVS c++ compiler. I have a bug free function the causes the engine to crash. So what do I do? I discovered accidentally more than a decade ago that if I insert some dummy code that doesn't change the function results and that referen...