mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 09:39:36 +00:00
Sync Root new depth to what we do in search()
This allow us to restore the old depth 12 benchmark and fixes one and for all the depth mess. Test confirms no regression: After 5658 games 892 - 924 - 3842 ELO -1 (+- 5.2) Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
29fa6f3c5f
commit
932ae761c6
3 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ void benchmark(int argc, char* argv[]) {
|
|||
|
||||
ttSize = argc > 2 ? argv[2] : "128";
|
||||
threads = argc > 3 ? argv[3] : "1";
|
||||
valStr = argc > 4 ? argv[4] : "11";
|
||||
valStr = argc > 4 ? argv[4] : "12";
|
||||
posFile = argc > 5 ? argv[5] : "default";
|
||||
valType = argc > 6 ? argv[6] : "depth";
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ int main(int argc, char* argv[]) {
|
|||
{
|
||||
if (string(argv[1]) != "bench" || argc > 7)
|
||||
cout << "Usage: stockfish bench [hash size = 128] [threads = 1] "
|
||||
<< "[limit = 11] [fen positions file = default] "
|
||||
<< "[limit = 12] [fen positions file = default] "
|
||||
<< "[depth, time, perft or node limited = depth]" << endl;
|
||||
else
|
||||
benchmark(argc, argv);
|
||||
|
|
|
@ -1070,7 +1070,7 @@ split_point_start: // At split points actual search starts from here
|
|||
|
||||
// Update current move (this must be done after singular extension search)
|
||||
ss->currentMove = move;
|
||||
newDepth = depth - (!Root ? ONE_PLY : DEPTH_ZERO) + ext;
|
||||
newDepth = depth - ONE_PLY + ext;
|
||||
|
||||
// Step 12. Futility pruning (is omitted in PV nodes)
|
||||
if ( !PvNode
|
||||
|
|
Loading…
Add table
Reference in a new issue