Sjaak II, Wa Shogi and XBoard 4.9
Posted: Mon Apr 25, 2016 10:42 am
Does the standard version of Sjaak II play Wa Shogi?
Now that the number of piece types in XBoard has been extended from 44 to 66, and there is no fixed pairing of promoted and unpromoted types, it is possible to make a much more satisfactory assignment of pieces. So the 1-kanji-wa piece theme we are going to supply (as well as the Mnemonic-S piece theme) will use a different piece (and ID) assignment as HaChu used before for dropless Wa:

Wa Shogi, with all black pieces promoted
This uses the pieceToCharTable
P..^S!^FS...W^OH.F.^R.^O'....R...D.GOO'^M..^H.M.C.^CC'.^W/.......^S.^P.^C'..^DS!.^GXKp..^s!^fs...w^oh.f.^r.^o'....r...d.goo'^m..^h.m.c.^cc'.^w/.......^s.^p.^c'..^ds!.^gxk
and FEN
hmo'cskwgc'do/1+o'3s!3f1/ppprpppxppp/3p3p3/11/11/11/3P3P3/PPPXPPPRPPP/1F3S!3+O'1/ODC'GWKSCO'MH w 0 1
where '^C' is the new method of defining a piece as '+' and at the same time pairing it with 'C'.
This might still run into a problem in Wa with drops, however: there is no piece E defined (for Cloud Eagle), and the primordial Cloud Eagle is indicated as +O' (promoted Swooping Owl). This causes the CE to demote on capture. Now arguably this is the better rule for Wa with drops, as a CE is way too strong for being dropped. (And the primordial Treacherous Fox (X) should similarly be replaced by +R (promoted Running Rabbit).) I am afraid this is not how people usually play it, though.
Would it be a problem to switch Sjaak II for using these new piece assignments when XBoard 4.9.0 will be released (which can be any moment now)? I will do the same in HaChu. Perhaps we should give it a new variant name to avoid confusion, and be able to keep supporting the old implementation for backward compatibility.
Now that the number of piece types in XBoard has been extended from 44 to 66, and there is no fixed pairing of promoted and unpromoted types, it is possible to make a much more satisfactory assignment of pieces. So the 1-kanji-wa piece theme we are going to supply (as well as the Mnemonic-S piece theme) will use a different piece (and ID) assignment as HaChu used before for dropless Wa:

Wa Shogi, with all black pieces promoted
This uses the pieceToCharTable
P..^S!^FS...W^OH.F.^R.^O'....R...D.GOO'^M..^H.M.C.^CC'.^W/.......^S.^P.^C'..^DS!.^GXKp..^s!^fs...w^oh.f.^r.^o'....r...d.goo'^m..^h.m.c.^cc'.^w/.......^s.^p.^c'..^ds!.^gxk
and FEN
hmo'cskwgc'do/1+o'3s!3f1/ppprpppxppp/3p3p3/11/11/11/3P3P3/PPPXPPPRPPP/1F3S!3+O'1/ODC'GWKSCO'MH w 0 1
where '^C' is the new method of defining a piece as '+' and at the same time pairing it with 'C'.
This might still run into a problem in Wa with drops, however: there is no piece E defined (for Cloud Eagle), and the primordial Cloud Eagle is indicated as +O' (promoted Swooping Owl). This causes the CE to demote on capture. Now arguably this is the better rule for Wa with drops, as a CE is way too strong for being dropped. (And the primordial Treacherous Fox (X) should similarly be replaced by +R (promoted Running Rabbit).) I am afraid this is not how people usually play it, though.
Would it be a problem to switch Sjaak II for using these new piece assignments when XBoard 4.9.0 will be released (which can be any moment now)? I will do the same in HaChu. Perhaps we should give it a new variant name to avoid confusion, and be able to keep supporting the old implementation for backward compatibility.