Check out Smess, our featured variant for February, 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]
William Wragg wrote at 09:33 AM UTC:

I'm working on a variant of Mischia, a small 6x6 chess variant where the pieces can swap with their own pieces, but take opponent pieces as normal. If I use betza.js the pieces are allowed to swap with the King, which is what I want and expected, but the AI falls over with an error when the opponent moves. I assume this is due to betza.js not being fully compatible with the ud extended Xbetza notation. I switched to trying it with betzaNew.js, and while the AI now works, I cannot swap with the King anymore, it flags it as an illegal move. I'm assuming that betzaNew.js is a testing script, I was just using it to test my new variant to see if it's interesting and fun enough to create a variant page for. If it is I'll use the betza.js script on the variant page and disable the AI. I'm wondering if there is some change in defaults that I missed which would make the betzaNew.js diagram able to swap with a King? I can't seem to embed a working diagram in the comment section, but here is the diagram code I am using:

files=6
ranks=6
promoZone=1
promoChoice=*Q*R*N*B
holdingsType=1
symmetry=mirror
graphicsDir=/graphics.dir/alfaeriePNG/
squareSize=50
lightShade=#E0E0E0
darkShade=#FFFFFF
graphicsType=png
royal=K
captureMatrix=.=.!...../.=/.=...!...
swapping shatranj pawn:P:mfudWfudFcfF:pawn:a2-f2
swapping knight:N:mudNcN:knight:f1
swapping bishop:B:mudBcB:bishop:b1,e1
swapping rook:R:mudRcR:rook:a1
swapping queen:Q:mudQcQ:queen:c1
king:K:K:king:d1
firstRank=1
rimColor=#C1C1C1
useMarkers=0
borders=1
enforceRules=1