]> git.sesse.net Git - stockfish/commit
Hardcode depth limit for selective search
authorMarco Costalba <mcostalba@gmail.com>
Tue, 28 Apr 2009 06:47:26 +0000 (08:47 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 28 Apr 2009 06:47:26 +0000 (08:47 +0200)
commitfbca16da570756f5220b229845e566bd05aa3ce8
tree3a196f75f68c930f4d8bd8a4be6d8840f90ebdf0
parent1e97cdd9f3d16a11979229ae439e7ca7695cde3a
Hardcode depth limit for selective search

Because futility margins array has a fixed size we cannot
arbitrarly choose or change the SelectiveDepth parameter,
otherwise we have a crash for values bigger then array size.

On the other hand tweaking of this parameter requires some
modification to the hardcoded margins, so makes sense to hard
code also this very bounded one.

Who wants to experiment is of course free to change the sources.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp
src/ucioption.cpp