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

Betza notation (extended). The powerful XBetza extension to Betza's funny notation.[All Comments] [Add Comment or Rating]
💡📝H. G. Muller wrote on Sat, Jun 13, 2020 03:45 PM UTC:

Oh, that rule is a standard feature of the diagram. You can also see that in the definition of the Gross Chess diagram itself. You just prefix the piece ID in the promoChoice setting with an asterisk (*). (Must still make the AI understand that, though.) Choices that cannot be made on last rank (like staying a Pawn) can be prefixed with an exclamation point (!). So you don't have to worry about that in WeirdPromotion(). The problem is that the way the diagram works it would offer all pieces mentioned in promoChoice that are available for the user to promote to, irrespective of what rank in the zone you are on. So the task of WeirPromotion is just to reject the choices that are not allowed according to the specific promotion rules, and I think the version there does that by considering them the choice to not promote at all. By replacing the choice by a Pawn, as if the user had chosen that. On the last rank, where a Pawn would not be allowed, this can never happen, as every other choice would be allowed there.) I think in newer versions of the Diagram script WeirPromotion() can actually cause the Diagram to refuse the move completely (rather than just the promotion), by returning 1022 as choice.