First, I like makefile to compile fast and not to ask about architecture:
Code: Select all
diff -dur src-ja/Makefile src/Makefile
--- src-ja/Makefile 2010-06-30 03:19:38.000000000 +0200
+++ src/Makefile 2010-07-06 13:19:13.000000000 +0200
@@ -299,7 +299,7 @@
### ==========================================================================
default:
- $(MAKE) ARCH=$(ARCH) COMP=$(COMP) build
+ $(MAKE) ARCH=x86-32 COMP=gcc build
help:
@echo ""
@@ -408,7 +408,7 @@
-strip $(BINDIR)/$(EXE)
clean:
- $(RM) $(EXE) *.o .depend *~ core bench.txt
+ $(RM) $(EXE) *.o .depend *~ core bench.txt *.gcda
testrun:
@$(PGOBENCH)
Code: Select all
diff -dur src/search.cpp src-Ch/search.cpp
--- src/search.cpp 2010-07-06 13:17:26.000000000 +0200
+++ src-Ch/search.cpp 2010-07-06 14:39:37.000000000 +0200
@@ -455,7 +455,7 @@
// Read UCI option values
TT.set_size(get_option_value_int("Hash"));
- if (button_was_pressed("Clear Hash"))
+ if (button_was_pressed("Clear Hash") || button_was_pressed("New Game"))
TT.clear();
CheckExtension[1] = Depth(get_option_value_int("Check Extension (PV nodes)"));
@@ -484,7 +484,7 @@
// Set the number of active threads
int newActiveThreads = get_option_value_int("Threads");
- if (newActiveThreads != TM.active_threads())
+ if (newActiveThreads != TM.active_threads() || button_was_pressed("New Game"))
{
TM.set_active_threads(newActiveThreads);
init_eval(TM.active_threads());
But in the meantime, Tinapa 1.01 was released, so I cloned it back to Stockfish:
Code: Select all
diff -dur src-Ch/search.cpp src-TiCh/search.cpp
--- src-Ch/search.cpp 2010-07-06 14:39:37.000000000 +0200
+++ src-TiCh/search.cpp 2010-07-08 11:50:00.000000000 +0200
@@ -1185,7 +1185,7 @@
ss->currentMove = MOVE_NULL;
// Null move dynamic reduction based on depth
- int R = 3 + (depth >= 5 * OnePly ? depth / 8 : 0);
+ int R = 3 + (depth >= 9 ? (depth - 3) / 6 : 0); // inspired by Tinapa 1.01
// Null move dynamic reduction based on value
if (refinedValue - beta > PawnValueMidgame)
Code: Select all
diff -dur src-TiCh/search.cpp src-TiAvCh/search.cpp
--- src-TiCh/search.cpp 2010-07-08 11:50:00.000000000 +0200
+++ src-TiAvCh/search.cpp 2010-07-08 11:48:37.000000000 +0200
@@ -1206,11 +1206,11 @@
nullValue = beta;
// Do zugzwang verification search at high depths
- if (depth < 6 * OnePly)
+ if (depth-R*OnePly < OnePly)
return nullValue;
ss->skipNullMove = true;
- Value v = search<NonPV>(pos, ss, alpha, beta, depth-5*OnePly, ply);
+ Value v = search<NonPV>(pos, ss, alpha, beta, depth-R*OnePly, ply);
ss->skipNullMove = false;
if (v >= beta)
By the way, are there any known testpositions where accuracy (or speed, or both) of verification search is important?