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

Home page of The Chess Variant Pages. Homepage of The Chess Variant Pages.[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Fri, Nov 17, 2023 06:25 PM UTC in reply to H. G. Muller from 08:22 AM:

this problem seems specific to the Abstract set

It also extends to the Magnetic and Motif sets. Magnetic uses a different shade of red, but it would still appear as white on my Scribe. Today I made the solution more general. I programmed showpiece.php to know the original color for images in certain known sets. So, originalcolor is no longer needed in the query string, and the showpiece.php script can be used with most any set in an Interactive Diagram by appending '/play/pbm/showpiece.php?image=' at the front of a graphDir value. As a demonstration, and to test things until they worked, I did this for every set for Chess.

Additionally, I added the parameters of black and white, which are used to specify a particular color to use for black or white pieces respectively. This allows a single graphDir value to separately define the color to be used for each side. To enable different colored SVG pieces to be used, it also converts an SVG filename beginning with b to one beginning with w. This lets it tell that the piece should be black while enabling it to use the w*.svg file that actually exists. This eliminates the need to create PNG copies of SVG files, because they can now be used directly in Interactive Diagrams for both sides, so long as the showpiece.php script is being used to display and color them. As a demonstration of this, the Chess page has the Alfaerie SVG set. You should notice this is subtly different from the Alfaerie set, which uses PNG files.