Emit 'piece' commands in Wa Shogi
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 27 Apr 2016 18:41:16 +0000 (20:41 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 27 Apr 2016 18:41:16 +0000 (20:41 +0200)
Because Wa Shogi is an engine-defined variant that uses most pieces
totally different from XBoard's own ideas about them, keeping the GUI
up to date on the piece moves is quite helpful for obtaining good SAN.

hachu.c

diff --git a/hachu.c b/hachu.c
index 6f24f5b..79b7e67 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -3013,7 +3013,11 @@ pboard(board);
           if(currentVariant == V_WA)\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
+                                                       "hmlcvkwgudo/1e3s3f1/ppprpppxppp/3p3p3/11/11/11/3P3P3/PPPXPPPRPPP/1F3S3E1/ODUGWKVCLMH w 0 1\n"\r
+                   "piece P& fW\npiece O& fR\npiece H& fRbW2\npiece U& fWbF\npiece L& fWbF\npiece M& vWfF\npiece G& vWfF\npiece C& sWfF\n"\r
+                   "piece +P& WfF\npiece +O& K\npiece +H& vN\npiece +U& BfW\npiece +L& vRfF3bFsW\npiece +M& FfW\npiece +G& sRvW\npiece +C& vRsWfF\n"\r
+                   "piece D& sbWfF\npiece V& FfW\npiece W& WfF\npiece S& sRvW\npiece R& FfRbW\npiece F& BfW\npiece X& FvWAvD\n"\r
+                   "piece +D& WfF\npiece +V& FfsW\npiece +W& K\npiece +S& R\npiece +R& FvWAvD\npiece +F& BvRsW\npiece E& vRfF3bFsW\n");\r
          repStack[199] = hashKeyH, checkStack[199] = 0;\r
           continue;\r
         }\r