I simplified the necessary input even further, by allowing the specs for the piece ID, and the piece image to be empty. The first character of the name will then be taken as ID, while the name of the piece is used (in a case-sensitive way) to derive the image name from (as these often are the same). The user can define a white/blackPrefix (w/b) and a graphicsType (gif) that will be attached to the piece name to create a filename when none was given. So you would only have to specify the image base name when it does not correspond to the name you want to use for the piece.
It can even supply moves for the most common pieces, (such as orthodox and Capablanca pieces), when you leave the Betza specifiction empty. The page source of the webpage that you see in the screenshot above looks like:
That is really all. Only the Knight needed an explicit ID (to prevent the 'K' being chosen), and the Archbishop an explicit image name (because in Alfaerie the image is called 'w/bcardinal.gif'). I changed the order of the fields, so that the name goes now in front (followed by ID, move and image). The default graphicsType is now 'gif', the default prefixes 'w' and 'b', which is good for Alfaerie. A new override squareSize is needed with Alfaerie because it uses 50x50 bitmaps. The lengthy graphicsDir was required to reach the Alfaerie set on chessvariant.com from my own website; normally it would be a local directory, and Alfaerie could even be made default,so that the parameter could be omitted.
Live version at hgm.nubati.net/variants/diagram/alfaerie.html.
I simplified the necessary input even further, by allowing the specs for the piece ID, and the piece image to be empty. The first character of the name will then be taken as ID, while the name of the piece is used (in a case-sensitive way) to derive the image name from (as these often are the same). The user can define a white/blackPrefix (w/b) and a graphicsType (gif) that will be attached to the piece name to create a filename when none was given. So you would only have to specify the image base name when it does not correspond to the name you want to use for the piece.
It can even supply moves for the most common pieces, (such as orthodox and Capablanca pieces), when you leave the Betza specifiction empty. The page source of the webpage that you see in the screenshot above looks like:
That is really all. Only the Knight needed an explicit ID (to prevent the 'K' being chosen), and the Archbishop an explicit image name (because in Alfaerie the image is called 'w/bcardinal.gif'). I changed the order of the fields, so that the name goes now in front (followed by ID, move and image). The default graphicsType is now 'gif', the default prefixes 'w' and 'b', which is good for Alfaerie. A new override squareSize is needed with Alfaerie because it uses 50x50 bitmaps. The lengthy graphicsDir was required to reach the Alfaerie set on chessvariant.com from my own website; normally it would be a local directory, and Alfaerie could even be made default,so that the parameter could be omitted.