Closed osvitashev closed 2 years ago
You can implement a "divide" function and find in a few seconds where's the problem.
Alex
I did use Perft extensively, including the Kiwipete position, see: https://github.com/sandermvdb/chess22k/blob/master/src/main/java/nl/s22k/chess/maintests/Perft.java
The reason you are getting less moves is because under-promotions need to be enabled: if (!EngineConstants.GENERATE_BR_PROMOTIONS) { System.out.println("Generation of underpromotions is disabled!"); }
The reason these are disabled because more moves are being generated (and need to be searched) but they are almost never usefull.
@sandermvdb oh, makes sense! I should have spent tome time looking at your tests. Thanks for clarification!
Not sure if something is wrong on my end, or the library, but i am getting wrong node count for Perft:
I get Depth: 4 Perft rezult: 4078017 total nodes, whereas it is supposed to be 4085603