Check out Modern Chess, our featured variant for January, 2025.


[ 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

Interactive diagrams. (Updated!) Diagrams that interactively show piece moves.[All Comments] [Add Comment or Rating]
💡📝H. G. Muller wrote on Tue, Jun 11, 2024 08:03 AM UTC in reply to A. M. DeWitt from Mon Jun 10 06:04 PM:

I noticed a bug where its Shogi promotion parameter (|) blocks out the second player's promotion moves where the morph parameter comes into effect.

This is fixed now. I had added codes 999 and 998 in the internal representation of the morph array for optional and forced Shogi promotions (1000 already existed for chess-like promotion choice), but these were not exempted yet from adding 1024 if black moved. (Which is done for codes that represent piece type.)

Besides | for optional Shogi promotion there existed a & for indicating forced Shogi promotion (i.e. using promoOffset), which I added to avoid having to specify the ID of the promoting piece (which in Shogi often is a two-letter combination +L). This was undocumented, because it never worked. The reason for this failure was that the editor mutilates the & character in the Diagram definition. So I now use ^ for forced Shogi promotion instead (which did not have a meaning yet in the morph parameter). For Pawns on the last rank this is really the symbol you would want to use.

while you are at it, can you copy the Shogi promotion code from betzaNewer over to betzaNew?

You like the 'purple method' better? I did copy the code, but also left in the old code in an if-then-else construct. For now it always uses the purple method, but it would be easy to make this subject to a new parameter.