rule: 修正 isBlackLoseButNotDrawWhenBoardFull 大小写错误

This commit is contained in:
Calcitem 2020-11-08 16:54:19 +08:00
parent 8a7b0897a9
commit 5a1acb80b6
3 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ Value Evaluation<T>::value()
case PHASE_GAMEOVER: case PHASE_GAMEOVER:
if (pos.pieces_count_on_board(BLACK) + pos.pieces_count_on_board(WHITE) >= if (pos.pieces_count_on_board(BLACK) + pos.pieces_count_on_board(WHITE) >=
RANK_NB * FILE_NB) { RANK_NB * FILE_NB) {
if (rule->isBlackLosebutNotDrawWhenBoardFull) { if (rule->isBlackLoseButNotDrawWhenBoardFull) {
value -= VALUE_MATE; value -= VALUE_MATE;
} else { } else {
value = VALUE_DRAW; value = VALUE_DRAW;

View File

@ -1164,7 +1164,7 @@ bool Position::check_gameover_condition()
} }
if (pieceCountOnBoard[BLACK] + pieceCountOnBoard[WHITE] >= RANK_NB * FILE_NB) { if (pieceCountOnBoard[BLACK] + pieceCountOnBoard[WHITE] >= RANK_NB * FILE_NB) {
if (rule->isBlackLosebutNotDrawWhenBoardFull) { if (rule->isBlackLoseButNotDrawWhenBoardFull) {
set_gameover(WHITE, LOSE_REASON_BOARD_IS_FULL); set_gameover(WHITE, LOSE_REASON_BOARD_IS_FULL);
} else { } else {
set_gameover(DRAW, DRAW_REASON_BOARD_IS_FULL); set_gameover(DRAW, DRAW_REASON_BOARD_IS_FULL);

View File

@ -33,7 +33,7 @@ struct Rule
bool isDefenderMoveFirst; bool isDefenderMoveFirst;
bool allowRemoveMultiPiecesWhenCloseMultiMill; bool allowRemoveMultiPiecesWhenCloseMultiMill;
bool allowRemovePieceInMill; bool allowRemovePieceInMill;
bool isBlackLosebutNotDrawWhenBoardFull; bool isBlackLoseButNotDrawWhenBoardFull;
bool isLoseButNotChangeSideWhenNoWay; bool isLoseButNotChangeSideWhenNoWay;
bool allowFlyWhenRemainThreePieces; bool allowFlyWhenRemainThreePieces;
int maxStepsLedToDraw; int maxStepsLedToDraw;