setTips: 处理黑白翻转的情况

This commit is contained in:
Calcitem 2020-09-06 00:57:40 +08:00
parent 6fcfad918c
commit 69451b47f3
1 changed files with 8 additions and 1 deletions

View File

@ -1388,7 +1388,14 @@ void GameController::setTips()
Position &p = position;
string winnerStr, reasonStr, resultStr, scoreStr;
string turnStr = char_to_string(color_to_char(p.sideToMove));
string turnStr;
if (isInverted) {
turnStr = char_to_string(color_to_char(~p.sideToMove));
} else {
turnStr = char_to_string(color_to_char(p.sideToMove));
}
switch (p.phase) {
case PHASE_READY: