rule: 更名为 isLoseButNotChangeSideWhenNoWay
This commit is contained in:
parent
bab6472ff2
commit
b88af2f95f
|
@ -135,7 +135,7 @@ Value Evaluation::value()
|
||||||
}
|
}
|
||||||
} else if (pos.action == ACTION_SELECT &&
|
} else if (pos.action == ACTION_SELECT &&
|
||||||
pos.is_all_surrounded() &&
|
pos.is_all_surrounded() &&
|
||||||
rule.isLoseButNotChangeTurnWhenNoWay) {
|
rule.isLoseButNotChangeSideWhenNoWay) {
|
||||||
Value delta = pos.sideToMove == BLACK ? -VALUE_MATE : VALUE_MATE;
|
Value delta = pos.sideToMove == BLACK ? -VALUE_MATE : VALUE_MATE;
|
||||||
value += delta;
|
value += delta;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1006,7 +1006,7 @@ bool Position::check_gameover_condition()
|
||||||
// TODO: move to next branch
|
// TODO: move to next branch
|
||||||
phase = PHASE_GAMEOVER;
|
phase = PHASE_GAMEOVER;
|
||||||
|
|
||||||
if (rule.isLoseButNotChangeTurnWhenNoWay) {
|
if (rule.isLoseButNotChangeSideWhenNoWay) {
|
||||||
gameoverReason = LOSE_REASON_NO_WAY;
|
gameoverReason = LOSE_REASON_NO_WAY;
|
||||||
winner = ~sideToMove;
|
winner = ~sideToMove;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -35,7 +35,7 @@ struct Rule
|
||||||
bool allowRemoveMultiPiecesWhenCloseMultiMill;
|
bool allowRemoveMultiPiecesWhenCloseMultiMill;
|
||||||
bool allowRemovePieceInMill;
|
bool allowRemovePieceInMill;
|
||||||
bool isBlackLosebutNotDrawWhenBoardFull;
|
bool isBlackLosebutNotDrawWhenBoardFull;
|
||||||
bool isLoseButNotChangeTurnWhenNoWay;
|
bool isLoseButNotChangeSideWhenNoWay;
|
||||||
bool allowFlyWhenRemainThreePieces;
|
bool allowFlyWhenRemainThreePieces;
|
||||||
Step maxStepsLedToDraw;
|
Step maxStepsLedToDraw;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue