From 6f8f337c3714ac5fcfac7f322326f6edc55da6d1 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 27 Apr 2016 20:41:16 +0200 Subject: [PATCH] Emit 'piece' commands in Wa Shogi 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 | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/hachu.c b/hachu.c index 6f24f5b..79b7e67 100644 --- a/hachu.c +++ b/hachu.c @@ -3013,7 +3013,11 @@ pboard(board); if(currentVariant == V_WA) printf("setup (P..^S^FV..^LW^OH.F.^R.E....R...D.GOL^M..^H.M.C.^CU.^W/.......^V.^P.^U..^DS.^GXK" "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 " - "hmlcvkwgudo/1e3s3f1/ppprpppxppp/3p3p3/11/11/11/3P3P3/PPPXPPPRPPP/1F3S3E1/ODUGWKVCLMH w 0 1\n"); + "hmlcvkwgudo/1e3s3f1/ppprpppxppp/3p3p3/11/11/11/3P3P3/PPPXPPPRPPP/1F3S3E1/ODUGWKVCLMH w 0 1\n" + "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" + "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" + "piece D& sbWfF\npiece V& FfW\npiece W& WfF\npiece S& sRvW\npiece R& FfRbW\npiece F& BfW\npiece X& FvWAvD\n" + "piece +D& WfF\npiece +V& FfsW\npiece +W& K\npiece +S& R\npiece +R& FvWAvD\npiece +F& BvRsW\npiece E& vRfF3bFsW\n"); repStack[199] = hashKeyH, checkStack[199] = 0; continue; } -- 1.7.0.4