Search found 3623 matches

by Henk
Sat May 25, 2019 8:40 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: QSearch perft
Replies: 24
Views: 485

Re: QSearch perft

Maybe I only do check evasions above some depth. Say -6. I don't have repetition detection in QSearch. If most are captures then I think not many repetitions will occur or not? By the way with check evasions I get same problem with futility pruning in QSearch as in normal Search on depth = 1. For in...
by Henk
Fri May 24, 2019 8:22 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: QSearch perft
Replies: 24
Views: 485

Re: QSearch perft

QPerft extracted from my QSearch code was about 350 lines of code. So I can't publish it here.
Giving same results by the way after similar modifications that is generate ALL legal moves when in check.
by Henk
Fri May 24, 2019 5:26 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: QSearch perft
Replies: 24
Views: 485

Re: QSearch perft

These are the counts I get per move at depth 4, maybe it helps. g2h3: 381 d5e6: 436 e5g6: 495 e5d7: 642 e5f7: 475 e2a6: 343 f3h3: 397 f3f6: 521 Maybe somebody else can verify these numbers. I think the difference is due to the fact that you don't generate check-evasions, because check-evasions will...
by Henk
Fri May 24, 2019 2:17 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: QSearch perft
Replies: 24
Views: 485

Re: QSearch perft

I get the same number as you : I'm happy to know that our numbers are the same. Henk is not generating check-evasions and that causes the difference. By the way is doing check evasions in QSearch an elo gain? Maybe I should implement them too if I have time. At this moment I don't call QSearch in n...
by Henk
Fri May 24, 2019 1:40 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: QSearch perft
Replies: 24
Views: 485

Re: QSearch perft

I get the same number as you : I'm happy to know that our numbers are the same. Henk is not generating check-evasions and that causes the difference. By the way is doing check evasions in QSearch an elo gain? Maybe I should implement them too if I have time. At this moment I don't call QSearch in n...
by Henk
Fri May 24, 2019 1:36 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: QSearch perft
Replies: 24
Views: 485

Re: QSearch perft

You really have to generate check-evasions when the king is in check (blocking moves and king moves to get out of check) if you want to be correct. Unfortunately I have to modify my code if I want to do it your way (to check if the king is captured), so it is not straightforward to compare our numb...
by Henk
Fri May 24, 2019 1:12 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: QSearch perft
Replies: 24
Views: 485

Re: QSearch perft

Henk, With only captures and promotions (and check evasions) I get on kiwipete: Depth 4 = 3690 Depth 5 = 25347 So my numbers are different, maybe something wrong with your enpassant captures? Of course there is a possibility that my perft() is in error, but I doubt it. Now I get: Depth 4 = 3622 Dep...
by Henk
Fri May 24, 2019 12:59 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: QSearch perft
Replies: 24
Views: 485

Re: QSearch perft

Strange my code does ep moves. Can't find it. Or maybe minor promotions. Don't know yet. I created an extra QPerft with code that collects captures, promotions and ep moves similar to code used in my normal perft test giving standard values for kiwi pete 4 and 5 so that code must be correct. But QP...
by Henk
Fri May 24, 2019 12:27 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: QSearch perft
Replies: 24
Views: 485

Re: QSearch perft

Strange my code does ep moves. Can't find it. Or maybe minor promotions. Don't know yet. I created an extra QPerft with code that collects captures, promotions and ep moves similar to code used in my normal perft test giving standard values for kiwi pete 4 and 5 so that code must be correct. But QPe...
by Henk
Fri May 24, 2019 11:13 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: QSearch perft
Replies: 24
Views: 485

Re: QSearch perft

If king is captured it was an illegal move so it returns 0. Just like a normal perft definition but limited to performing only legal captures, promotions and en passant moves.