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

How to Design and Post Your Own Game. A reference for those who want to post their own games here.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Fri, Feb 14 10:19 AM UTC:

I added some support for collections in the Interactive Diagram (betzaNew.js only). This was fairly simple. There now is a new parameter set=N, with default value 0. This can be used to sub-divide the piece definitions into sets; all definitions that follow a set=N line would be considered to belong in set N, until the value of the set is changed again.

By default only the definitions in set 0 would be considered; definitions of the other sets will be ignored. But it is possible to call the function SwitchDiag(active, W, B) with the extra parameters W and B, to add white pieces from set W and black pieces from set B. The piece-definition lines in the specified sets would be parsed, and included in the piece table, but the pieces of the 'wrong' color in the setup field would be ignored.

Note that you would need symmetry=none for this to work in a different-army context. The other symmetries only mention the white pieces anyway, and then automatically place the corresponding black piece in the symmetric location, so that both colors are controlled by the W parameter.

files=8 ranks=8 promoZone=1 promoChoice= graphicsDir=/graphics.dir/alfaeriePNG/ squareSize=50 graphicsType=png symmetry=none royal=K pawn:P:ifmnDfmWfceF:pawn:a2,b2,c2,d2,e2,f2,g2,h2,,a7,b7,c7,d7,e7,f7,g7,h7 set=1 knight:N:N:knight:b1,g1,,b8,g8 bishop:B:B:bishop:c1,f1,,c8,f8 set=2 phoenix:X:WA:elephantwazir:b1,g1,,b8,g8 horseferz:H:[F?W]:horseferz:c1,f1,,c8,f8 set=0 rook:R:R:rook:a1,h1,,a8,h8 queen:Q:Q:queen:d1,,d8 king:K:KisO2:king:e1,,e8