Perft for capturing move gen

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

eligolf
Posts: 114
Joined: Sat Nov 14, 2020 12:49 pm
Full name: Elias Nilsson

Perft for capturing move gen

Post by eligolf »

I just started making a movegen for only capture moves which was not too hard to do. I am using the 10x12 board representation, I understand that this is easier to do for bitboards since you can just AND the normal results for each piece with opponent pieces.

Anyway, is there any perft to test my capturing move generator? The move gen is not super complicated, but just to be safe I wanted to test it. I could of course set up some cases myself and manually count, but that would also be a source of error. I am thinking it should cover some normal "tricky" cases such as e.p. and promotion.
abulmo2
Posts: 433
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: Perft for capturing move gen

Post by abulmo2 »

You can try my perft available here: https://github.com/abulmo/MPerft
It does have an option to generate only captures, promotions and check evasions.
Richard Delorme
abulmo2
Posts: 433
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: Perft for capturing move gen

Post by abulmo2 »

abulmo2 wrote: Thu Jan 14, 2021 1:41 pm You can try my perft available here: https://github.com/abulmo/MPerft
It does have an option to generate only captures, promotions and check evasions.
An old discussion about 'qs' perft numbers done on the Kiwipete position:
http://talkchess.com/forum3/viewtopic.php?f=7&t=70808
Richard Delorme