I have made one small change. I created a new checkbox in Edit mode called "Skip First Move", and I checked this for Metamachy. When checked, this causes $player and $opponent to be switched when an invitation is accepted or a tournament game is assigned. This switch happens after the $players string has been assigned. So, it does not affect the value of that string, which will still put the White player first. In tests, it gave the first move to Black, and it correctly identified the winner when someone resigned. Note that "1. skip;" still had to be provided in the Initial Moves section.
This does not affect games already in progress or already finished. Therefore, it does not fix any games that gave the wrong results. This will have to be handled separately.
I have made one small change. I created a new checkbox in Edit mode called "Skip First Move", and I checked this for Metamachy. When checked, this causes $player and $opponent to be switched when an invitation is accepted or a tournament game is assigned. This switch happens after the $players string has been assigned. So, it does not affect the value of that string, which will still put the White player first. In tests, it gave the first move to Black, and it correctly identified the winner when someone resigned. Note that "1. skip;" still had to be provided in the Initial Moves section.
This does not affect games already in progress or already finished. Therefore, it does not fix any games that gave the wrong results. This will have to be handled separately.