Fix confinement of Advisor in Xiangqi
authorH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 21 Apr 2016 20:47:18 +0000 (22:47 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 8 May 2016 12:06:33 +0000 (14:06 +0200)
commit077968e4416346f9e4e8576d72ccc98d84c598d8
tree5e8d2b325f8bd8c12b62b42cd21d6952fa4c0dc1
parentdb63f0000c54a092bb4f1a03691ed1111291b07f
Fix confinement of Advisor in Xiangqi

Ever since the move-generator rewrite the Advisor could leave the Palace!
Now it can only move in XQ as a normal Ferz when on the board axis, and
everywhere els it can only move to the axis one square from the edge.
This does not generalize in a natural way to larger boards or larger
Palaces.
moves.c