rule: 修正 isBlackLoseButNotDrawWhenBoardFull 大小写错误
This commit is contained in:
parent
8a7b0897a9
commit
5a1acb80b6
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue