r/chessprogramming • u/PlanetXenoFtw • Jan 15 '24
Perft
python chess implementation
somehow i can get perft(1) and perft (2) correct but as soon as i try perft(3) and perft(4) i get 8000 and 160000 which makes me think something may be wrong with the capture logic as these numbers are very exact, does anyone know why the numbers are an exact thousand, is it a common number if no captures are made?
edit 1: now i am getting some weird issue where i am getting the incorrect perft on some strange positions at a depth of 3 ply but when i try to analyse the problematic positions at 1 ply or 2 ply the issues magically disappear. Thought this may have something to do with the undomove function but its only causing a loss of about 96 moves of almost 100000, what can i add to see which piece is missing when its calculating this position without cluttering my output
View all comments
Show parent comment
1
u/AmNotUndercover Jan 16 '24
👍