Search algorithm testing
Posted: Wed Nov 04, 2015 1:17 am
Are there any strategies or methods to test the search algorithm? I have used Perft to test my move generation, and all is fine with that. But I have just completed my (parallel) search function and I'd like to reassure myself that it is actually doing what is expected. I added a few lines to my code to print out the move list at a node at a certain ply, to check if it generates the moves in a sensible order, and it does do something a little unexpected.
I am only using a very simple evaluation at this stage though (just material and piece-square scoring -- I find it amazing that even such a simple evaluation function can actual make it play moves that you might see in an actual game), so it may well be perfectly ok, and it may just be that my poor human brain can't work out what it's doing. I have a feeling, but I was hoping for any tips/suggestions for an actual empirical test of the algorithm, rather than just guessing or playing thousands of games.
I am only using a very simple evaluation at this stage though (just material and piece-square scoring -- I find it amazing that even such a simple evaluation function can actual make it play moves that you might see in an actual game), so it may well be perfectly ok, and it may just be that my poor human brain can't work out what it's doing. I have a feeling, but I was hoping for any tips/suggestions for an actual empirical test of the algorithm, rather than just guessing or playing thousands of games.