myfish wrote:What would be very useful, is an image map of PN....etc but, in an image list for mortals.
Well, I did publish the list earlier (in this thread, I think) of XBoard image names. It was this:
Code: Select all
char *pngPieceNames[] = // must be in same order as internal piece encoding
{ "Pawn", "Knight", "Bishop", "Rook", "Queen", "Advisor", "Elephant", "Archbishop", "Marshall", "Gold", "Commoner",
"Canon", "Nightrider", "CrownedBishop", "CrownedRook", "Princess", "Chancellor", "Hawk", "Lance", "Cobra", "Unicorn", "Lion",
"GoldPawn", "HSword", "PromoHorse", "PromoDragon", "Leopard", "PromoSword", "Prince", "Phoenix", "Kylin", "PromoRook", "PromoHSword",
"Dolphin", "Chancellor", "Unicorn", "Hawk", "Sword", "Princess", "HCrown", "Knight", "Elephant", "PromoBishop", "King",
"Claw", "GoldKnight", "GoldLance", "GoldSilver", NULL
};
There is one complication, though, which is that we are using parent variant Chu. And Chu in XBoard doesn't use the default image assignment, but shuffles them around to get a better match between pieces and images in the default theme. In the unpromoted series:
Nightrider is replaced by Claw
Chancellor by Sword
Hawk by HSword
Unicorn by Leopard
The promoted series was already designed as optimal for Chu, as no other variant was using it yet. So the order in Chu is:
Code: Select all
"Pawn", "Knight", "Bishop", "Rook", "Queen", "Advisor", "Elephant", "Archbishop", "Marshall", "Gold", "Commoner",
"Canon", "Claw", "CrownedBishop", "CrownedRook", "Princess", "Sword", "HSword", "Lance", "Cobra", "Leopard", "Lion",
"GoldPawn", "HSword", "PromoHorse", "PromoDragon", "Leopard", "PromoSword", "Prince", "Phoenix", "Kylin", "PromoRook", "PromoHSword",
"Dolphin", "Chancellor", "Unicorn", "Hawk", "Sword", "Princess", "HCrown", "Knight", "Elephant", "PromoBishop", "King"
These are the images in order as they would be assigned to the locations in the pieceToCharTable. You see that some are there twice, in particular Knight, HSword, Sword and Princess, with one copy in the N/+N and G/+G slots, which are unused in Chu. (And thus cause no trouble as long as you don't use them in any chu-based variant either.)
So the procedure I followed for Wa in HaChu is that I went through all unpromoted images, to decide what Wa piece I could best represent by that glyph (aware that I would have to virtually use all of them). Like the King, Pawn, Gold, Advisor, Commoner and Lance images for Crane King, Sparrow Pawn, Violent Wolf, Flying Goose, Climbing Monkey and Oxcart, because they are commonly used for King, Pawn, Gold, Silver, Copper, and Lance in other Shogi variants, and these pieces move just like that. And then I used Queen for Cloud Eagle and Princess for Treacherous Fox, because Queen does not promote in Chu (like CE in Wa), and the narrow crown of Princess also happens to be present in a non-promoted and promoted form, and resembles the move pattern of TF rather well.
The Liberated Horse became a Cannon, because it is used in Chu for Reverse Chariot, and the moves are rather similar (and orthogonal, like the XQ Cannon). The Flying Falcon became the CrownedBishop, normally used for DH in Shogi, as it also is an enhanced Bishop, like DH. The Swallow's Wings is the Side Mover of Chu, and can thus also use the HSword, which resembles its move. The Running Rabit is somewhat similar to the Chu Vertical Mover, and a normal Sword seemed to fit such a kind of move well. ArchBishop was used for Swooping Owl because it promotes to Cloud Eagle, for which we use Queen, and Archbishop is used for Phoenix in Chu, which promotes to Queen. For the same reason Strutting Crow became a Bishop (which promotes to PromoHorse in Chu, and the Horse was used to represent Flying Falcon to which Crow promotes. That didn't leave all that many pieces, and I assigned those more or less randomly. (The Climbing Monkey became a Leopard because they are both mammals, the Blind Dog the Claws, because that was Blind Tiger in Chu. That left Elephant for the Flying Cock.)
Hmm, Elephant promotes to King in the default theme, as that has no separate Prince. So perhaps I should still pack another one for that. I hate to pick Rook, though, for something so un-Rook-like. Although the promoted piece (+R) would not be such a poor match. In general it is the promoted pieces that give awful matches now, compared to their Chu meaning: Knights that move like Kings, Lying Crowns that move like Rooks, Bishops that move like Silver, Knight-on-inverted-Rooks that move like Gold... I guess the situation could be improved a little by using the Claw for Flying Cock, as it promotes to the NR-Chimera, which represents Flying Stag in Chu, which again is quite similar in move to +FC in Wa. Then the Dog could be a Rook.
Perhaps I could make other variant-dependent substitutions of pieces not used in Chu (in particular for N/+N) to make a suitable combination of glyphs for BD. (But N would be needed in Dai. So it might be better to just wait unitil I implemented the extra pieces needed for Dai, and then pick a suitable pair out of those...)