Reduce thinking time in Wa Shogi
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 7 Feb 2017 19:53:00 +0000 (20:53 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 7 Feb 2017 20:03:20 +0000 (21:03 +0100)
Due to the high branching factor time was too aggressively used up in
Wa Shogi. The timeusage is now reduced by 33% to avoid time trouble.

dropper.c

index 49379dc..f8a0630 100644 (file)
--- a/dropper.c
+++ b/dropper.c
@@ -1411,6 +1411,7 @@ TimeIsUp (int mode)
     targetTime = 10*timeLeft / 40 + inc;
     panicTime = 5*targetTime;
   }
+  if(nrFiles > 9) targetTime *= 0.66;    // Wa takes longer
   switch(mode) {
     case 1: return (t > 0.6*targetTime); // for starting new root iteration
     case 2: return (t > targetTime);     // for searching new move in root