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

Play-test applet for chess variants. Applet you can play your own variant against.[All Comments] [Add Comment or Rating]
💡📝H. G. Muller wrote on Tue, Feb 16, 2021 09:00 AM UTC in reply to Daniel Zacharias from 02:41 AM:

Indeed, this is a problem. The code used for automation recognizes the white and black pieces through GAME-code operators isupper and islower, which only detect the cases where all characters in the piece names are letters of the specified case. AFAIK there are no similar GAME-code commands that ignore non-alphabetic characters, or just look at the first alphabetic character of the string they act on. So piece sets with non-alphabetic names (or mixed case) are basically incompatible with GAME code.

It is a weak spot of GAME Courier anyway that the names of the image files have to 'leak' into the code; this whole concept of piece sets is an annoying limitation. It would be much better if the mapping internal name -> image URL could be arbitrarily specified on a piece-by-piece basis during creation of a piece set, rather than forcing the user to choose between a limited number of sets, none of which satisfying the needs. If the existence of some standard sets would be desirable for simple applications (e.g.  'modest variants'), they can always be provided as standard 'piece-include files', which pre-define the mappings.