I wonder if there is an option in Game Courier somewhere to have pieces rotate 180 degrees when the board is flipped?
There is no option for rotating piece images.
This is not the $flip variable in the set file, as that swaps the values for lowercase and uppercase keys when the board is flipped
That is not quite what it does. What is actually does is use the piece images in the $flipped array instead of those in the $pieces array. In case any piece labels have not been assigned to piece images in the $flipped array, it completes the $flipped array with this code:
if ($flip == true) {
foreach ($pieces as $key => $val) {
if (empty($flipped[$key]))
$flipped[$key] = $pieces[flipcase($key)];
}
}
This is useful for Shogi variants, in which the pieces on one side are usually 180° rotated images of the pieces on the other side. Note that some Shogi sets assign specific images to k and K for $flipped, because each side uses a different Kanji character for the piece, and they use the default values for the rest. Here's an example of such code:
There is no option for rotating piece images.
That is not quite what it does. What is actually does is use the piece images in the $flipped array instead of those in the $pieces array. In case any piece labels have not been assigned to piece images in the $flipped array, it completes the $flipped array with this code:
This is useful for Shogi variants, in which the pieces on one side are usually 180° rotated images of the pieces on the other side. Note that some Shogi sets assign specific images to k and K for $flipped, because each side uses a different Kanji character for the piece, and they use the default values for the rest. Here's an example of such code: