You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/generate_puzzles.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,16 @@ Currently the following options are available:
32
32
33
33
`material_limit` - maximum allowed material advantage. Positions with material imbalance exceeding this value are filtered out. Default: 64000 (effectively disabled).
34
34
35
+
`final_material_limit` - maximum allowed material imbalance after playing the validation PV. Helps avoid puzzles where the mating line ends with overwhelming extra material. Default: 64000 (effectively disabled).
36
+
37
+
`material_diff_limit` - maximum allowed absolute change in material imbalance between the candidate position and the final position reached by the validation PV. Default: 64000 (effectively disabled).
38
+
35
39
`mate_ply` - only keep positions with mate in at least this many plies. Filters out mates that are too short. When using `puzzle_depth` it applies to this validation search, otherwise uses the regular search result. Default: 1.
36
40
37
41
`second_pv_limit` - uses multipv 2 during puzzle verification and filters out positions where the second best line's evaluation is greater than or equal to this value (in centipawns). This helps ensure puzzle positions have a clear best solution by filtering out positions with strong alternative moves. Set to a value >= 32000 (VALUE_MATE) to disable this check. Default: 1000.
38
42
43
+
`second_pv_nonroot_limit` - when validating the PV recursively, re-search positions where the attacking side is to move again. If the second-best move at any of those points evaluates above this limit, the puzzle is rejected. The search depth shrinks as the PV progresses. Set to a value >= 32000 (VALUE_MATE) to disable. Default: VALUE_MATE_IN_MAX_PLY.
44
+
39
45
`random_move_min_ply` - the minimal ply at which a random move may be executed instead of a move chosen by search. Default: 1.
40
46
41
47
`random_move_max_ply` - the maximal ply at which a random move may be executed instead of a move chosen by search. Default: 150.
0 commit comments