Perft for capturing move gen

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
eligolf
Posts: 47
Joined: Sat Nov 14, 2020 11:49 am
Full name: Elias Nilsson

Perft for capturing move gen

Post by eligolf » Thu Jan 14, 2021 11:26 am

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: 304
Joined: Fri Dec 16, 2016 10:04 am
Contact:

Re: Perft for capturing move gen

Post by abulmo2 » Thu Jan 14, 2021 12: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.
Richard Delorme

abulmo2
Posts: 304
Joined: Fri Dec 16, 2016 10:04 am
Contact:

Re: Perft for capturing move gen

Post by abulmo2 » Thu Jan 14, 2021 12:46 pm

abulmo2 wrote:
Thu Jan 14, 2021 12: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

Post Reply