Comments/Ratings for a Single Item
Thank you HaruN Y and H. G. Muller, that was just what I wanted. It took a little while to understand the capture matrix, but I think I have it working now:
captureMatrix=.=.!...../.=/.=...!...
In the variant I'm working on only Pawns and Bishops can encounter the same friendly piece as themselves, so only they need to be prevented from swapping with each other.
It seems to me that this piece does not work properly (or at least is not represented correctly in the diagram when a black pawn is flew arround): nNnWXnDXnAYnGY. The nN part is fine, but the rest does no seem so.
@HG, Have you noticed my previous comment here?

I have, but I have bought a new house, and have been too busy with that to work on any Chess programming. Besides, it appears that changes I make to the I.D. scripts don't become visible to the users of this website anyway. Which makes debugging harder (as I have to do it locally), and would make it pointless to put a fixed script on the CVP site.

It seems to me that this piece does not work properly (or at least is not represented correctly in the diagram when a black pawn is flew arround): nNnWXnDXnAYnGY. The nN part is fine, but the rest does no seem so.
Indeed. In the old highlighting routine, which is still used for the move diagrams, the n modifier only works for leaps to 2nd or 3rd square. For larger leaps not all intervening squares are tested for occupancy. Perhaps I should fix that, one of these days. This is not very easy, because there is no simple way to get the unit step for a given leap, so that you can step through the entire path to test all squares. So what I do now is just test two points 1/3 and 2/3 along the way, rounded to the nearest square center.

I now beefed up the old highlighting routine a bit, such that hovering to interpose a Pawn in the move diagrams now also works for leaps of 4 and 5. (That routine was written before it was possible to even define such leaps with the aid of X and Y.) So nWX, nDX, nAY, nGY now should all work. Larger leaps will still fail; nHX would test only the even intervening squares.
10 comments displayed
Permalink to the exact comments currently displayed.
Ìn particular, outlaw the friendly capture of Bishop by Bishop. by writing a ! in that position.
Betza notation itself is 'type blind', except that it can distinguish royals from non-royals. Any type-dependent rules you would have to be specified through captureMatrix or morph.