perftree icon indicating copy to clipboard operation
perftree copied to clipboard

Documentation

Open geoff-m opened this issue 10 months ago • 3 comments

The readme says

For each move available at the current position, print the move and the number of nodes at the given depth which are an ancestor of that move, separated by whitespace.

Does "the current position" mean the same thing as what you call "the base position" earlier in this section? If not, what does "the current position" mean?

Also, you meant descendant instead of ancestor, right?

geoff-m avatar Apr 06 '24 06:04 geoff-m

Starting at the "base" position (i.e. $fen, set by the fen command), your engine should apply the moves provided in the $moves list (modified by the move/unmove/moves command) to get to the "current" position, from which it executes the perft.

Yes, that should be "descendant", thanks.

agausmann avatar Apr 06 '24 20:04 agausmann

Oh, now I understand. I was thinking the optional move list represented moves that should each be played in the given position (effectively selecting multiple branches starting at the root), not a sequence of moves to be played one after the other (effectively selecting a single deep branch).

geoff-m avatar Apr 06 '24 21:04 geoff-m

Would you mind taking a look at #14 ? I've tried to reword those docs to hopefully make it more clear in general.

agausmann avatar Apr 06 '24 21:04 agausmann