Check out Omega Chess, our featured variant for September, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

中象棋(Middle Xiangqi). Missing description[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Fri, Nov 13, 2020 10:25 AM UTC in reply to Daphne Snowmoon from 10:16 AM:

Well, since your game is very much like Xiangqi as far as confinement is concerned, you could simply copy the BadZone and Shade routines from the mentioned Xiangqi page. And then adapt the tests on the file and rank coordinates x and y to your different board size. And the piece numbers of the pieces to be confined to the numbers they have in your piece table.

You could even start by copying them 'as is'. But you will see (if you specify different lightShade and darkShade) that the Palace will then not be in the location you want it, and that it might confine other pieces than you would want to be confined. You can then experiment a bit with the numbers in the routines that specify the Palace boundaries or piece types until you get what you want.