rule: 更名为 isLoseButNotChangeSideWhenNoWay

This commit is contained in:
Calcitem 2020-09-20 21:26:25 +08:00
parent bab6472ff2
commit b88af2f95f
3 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ Value Evaluation::value()
}
} else if (pos.action == ACTION_SELECT &&
pos.is_all_surrounded() &&
rule.isLoseButNotChangeTurnWhenNoWay) {
rule.isLoseButNotChangeSideWhenNoWay) {
Value delta = pos.sideToMove == BLACK ? -VALUE_MATE : VALUE_MATE;
value += delta;
}

View File

@ -1006,7 +1006,7 @@ bool Position::check_gameover_condition()
// TODO: move to next branch
phase = PHASE_GAMEOVER;
if (rule.isLoseButNotChangeTurnWhenNoWay) {
if (rule.isLoseButNotChangeSideWhenNoWay) {
gameoverReason = LOSE_REASON_NO_WAY;
winner = ~sideToMove;
return true;

View File

@ -35,7 +35,7 @@ struct Rule
bool allowRemoveMultiPiecesWhenCloseMultiMill;
bool allowRemovePieceInMill;
bool isBlackLosebutNotDrawWhenBoardFull;
bool isLoseButNotChangeTurnWhenNoWay;
bool isLoseButNotChangeSideWhenNoWay;
bool allowFlyWhenRemainThreePieces;
Step maxStepsLedToDraw;
};