Make promote on entry default
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 4 May 2016 12:25:55 +0000 (14:25 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 4 May 2016 12:25:55 +0000 (14:25 +0200)
The option that decides whether non-captures can only promote when
entering the zone, rather than also after waiting one turn after
deferral, is now set by default. This because it seems to have been
the historic rule.

hachu.c

diff --git a/hachu.c b/hachu.c
index 34bd893..72d9972 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -162,7 +162,7 @@ typedef struct {
 \r
 char *array, *IDs, fenArray[4000], startPos[4000], *reason, checkStack[300];\r
 int bWidth, bHeight, bsize, zone, currentVariant, chuFlag, tenFlag, chessFlag, repDraws, stalemate;\r
-int tsume, pvCuts, allowRep, entryProm, okazaki, pVal;\r
+int tsume, pvCuts, allowRep, entryProm=1, okazaki, pVal;\r
 int stm, xstm, hashKeyH=1, hashKeyL=1, framePtr, msp, nonCapts, rootEval, filling, promoDelta;\r
 int retMSP, retFirst, retDep, pvPtr, level, cnt50, mobilityScore;\r
 int ll, lr, ul, ur; // corner squares\r
@@ -2989,12 +2989,12 @@ pboard(board);
           printf("%s%s", (i ? "," : "feature variants=\""), variants[i].name); printf("\"\n");\r
           printf("feature ping=1 setboard=1 colors=0 usermove=1 memory=1 debug=1 sigint=0 sigterm=0\n");\r
           printf("feature myname=\"HaChu " VERSION "\" highlight=1\n");\r
-          printf("feature option=\"Full analysis PV -check 1\"\n"); // example of an engine-defined option\r
-          printf("feature option=\"Allow repeats -check 0\"\n");\r
-          printf("feature option=\"Promote on entry -check 0\"\n");\r
-          printf("feature option=\"Okazaki rule -check 0\"\n");\r
-          printf("feature option=\"Resign -check 0\"\n");           // \r
-          printf("feature option=\"Contempt -spin 0 -200 200\"\n"); // and another one\r
+          printf("feature option=\"Full analysis PV -check %d\"\n", noCut); // example of an engine-defined option\r
+          printf("feature option=\"Allow repeats -check %d\"\n", allowRep);\r
+          printf("feature option=\"Promote on entry -check %d\"\n", entryProm);\r
+          printf("feature option=\"Okazaki rule -check %d\"\n", okazaki);\r
+          printf("feature option=\"Resign -check %d\"\n", resign);           // \r
+          printf("feature option=\"Contempt -spin %d -200 200\"\n", contemptFactor); // and another one\r
           printf("feature option=\"Tsume -combo no /// Sente mates /// Gote mates\"\n");\r
           printf("feature done=1\n");\r
           continue;\r