rule: 更名为 isLoseButNotChangeSideWhenNoWay
This commit is contained in:
parent
bab6472ff2
commit
b88af2f95f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -35,7 +35,7 @@ struct Rule
|
|||
bool allowRemoveMultiPiecesWhenCloseMultiMill;
|
||||
bool allowRemovePieceInMill;
|
||||
bool isBlackLosebutNotDrawWhenBoardFull;
|
||||
bool isLoseButNotChangeTurnWhenNoWay;
|
||||
bool isLoseButNotChangeSideWhenNoWay;
|
||||
bool allowFlyWhenRemainThreePieces;
|
||||
Step maxStepsLedToDraw;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue