Finding bugs in legal move generation or make/unmake move functions (Python)

Discussion of chess software programming and technical issues.

Moderators: Harvey Williamson, Dann Corbit, hgm

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

Re: Finding bugs in legal move generation or make/unmake move functions (Python)

Post by eligolf » Mon Nov 16, 2020 5:23 pm

Ferdy, did you make that perft on my code? Because I fixed that and I get some strange results :)

Ferdy
Posts: 4309
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: Finding bugs in legal move generation or make/unmake move functions (Python)

Post by Ferdy » Mon Nov 16, 2020 5:25 pm

eligolf wrote:
Mon Nov 16, 2020 5:23 pm
Ferdy, did you make that perft on my code? Because I fixed that and I get some strange results :)
Yes :)

eligolf
Posts: 17
Joined: Sat Nov 14, 2020 11:49 am
Full name: Elias Nilsson

Re: Finding bugs in legal move generation or make/unmake move functions (Python)

Post by eligolf » Mon Nov 16, 2020 5:31 pm

I reverted back to an older version of the code and made the switch, now it seems to be working perfect down to depth 5 from start position :D Thank you so much all for your valuable feedback, it will certainly be of use for future testing. And special gold star for Ferdy, you made my evening :)

Post Reply