Adapt Wa piece IDs to new XBoard 4.9 standard
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 27 Apr 2016 17:29:41 +0000 (19:29 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 27 Apr 2016 17:29:41 +0000 (19:29 +0200)
XBoard 4.9.0 has more pieces, and a different order of the pieces
beyond the first 22. It also needs explicit indication of what
promotes to what. The setup command for Wa is altered accordingly.

hachu.c

diff --git a/hachu.c b/hachu.c
index 2d63349..fc160b4 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -3011,8 +3011,9 @@ pboard(board);
           if(currentVariant == V_SHO)\r
             printf("setup (PNBRLSE..G.+++++++Kpnbrlse..g.+++++++k) 9x9+0_shogi lnsgkgsnl/1r2e2b1/ppppppppp/9/9/9/PPPPPPPPP/1B2E2R1/LNSGKGSNL w 0 1\n");\r
           if(currentVariant == V_WA)\r
-            printf("setup (P.C.EVLO.WGHDF.TRSXOM.+.+..+++.+++++..+++++Kp.c.evlo.wghdf.trsxom.+.+..+++.+++++..+++++k) 11x11+0_chu "\r
-                                                       "hmolvkwgcdx/1e3s3f1/ppprppptppp/3p3p3/11/11/11/3P3P3/PPPTPPPRPPP/1F3S3E1/XDCGWKVLOMH w 0 1\n");\r
+            printf("setup (P..^S^FV..^LW^OH.F.^R.E....R...D.GOL^M..^H.M.C.^CU.^W/.......^V.^P.^U..^DS.^GXK"\r
+                          "p..^s^fv..^lw^oh.f.^r.e....r...d.gol^m..^h.m.c.^cu.^w/.......^v.^p.^u..^ds.^gxk) 11x11+0_chu "\r
+                                                       "hmlcvkwgudo/1e3s3f1/ppprpppxppp/3p3p3/11/11/11/3P3P3/PPPXPPPRPPP/1F3S3E1/ODUGWKVCLMH w 0 1\n");\r
          repStack[199] = hashKeyH, checkStack[199] = 0;\r
           continue;\r
         }\r