rule: 修正 isBlackLoseButNotDrawWhenBoardFull 大小写错误
This commit is contained in:
parent
8a7b0897a9
commit
5a1acb80b6
|
@ -124,7 +124,7 @@ Value Evaluation<T>::value()
|
|||
case PHASE_GAMEOVER:
|
||||
if (pos.pieces_count_on_board(BLACK) + pos.pieces_count_on_board(WHITE) >=
|
||||
RANK_NB * FILE_NB) {
|
||||
if (rule->isBlackLosebutNotDrawWhenBoardFull) {
|
||||
if (rule->isBlackLoseButNotDrawWhenBoardFull) {
|
||||
value -= VALUE_MATE;
|
||||
} else {
|
||||
value = VALUE_DRAW;
|
||||
|
|
|
@ -1164,7 +1164,7 @@ bool Position::check_gameover_condition()
|
|||
}
|
||||
|
||||
if (pieceCountOnBoard[BLACK] + pieceCountOnBoard[WHITE] >= RANK_NB * FILE_NB) {
|
||||
if (rule->isBlackLosebutNotDrawWhenBoardFull) {
|
||||
if (rule->isBlackLoseButNotDrawWhenBoardFull) {
|
||||
set_gameover(WHITE, LOSE_REASON_BOARD_IS_FULL);
|
||||
} else {
|
||||
set_gameover(DRAW, DRAW_REASON_BOARD_IS_FULL);
|
||||
|
|
|
@ -33,7 +33,7 @@ struct Rule
|
|||
bool isDefenderMoveFirst;
|
||||
bool allowRemoveMultiPiecesWhenCloseMultiMill;
|
||||
bool allowRemovePieceInMill;
|
||||
bool isBlackLosebutNotDrawWhenBoardFull;
|
||||
bool isBlackLoseButNotDrawWhenBoardFull;
|
||||
bool isLoseButNotChangeSideWhenNoWay;
|
||||
bool allowFlyWhenRemainThreePieces;
|
||||
int maxStepsLedToDraw;
|
||||
|
|
Loading…
Reference in New Issue