diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 518a8675..8af05959 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -124,7 +124,7 @@ Value Evaluation::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; diff --git a/src/position.cpp b/src/position.cpp index bdd2e1e4..7dd37fd2 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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); diff --git a/src/rule.h b/src/rule.h index 09d82009..93477873 100644 --- a/src/rule.h +++ b/src/rule.h @@ -33,7 +33,7 @@ struct Rule bool isDefenderMoveFirst; bool allowRemoveMultiPiecesWhenCloseMultiMill; bool allowRemovePieceInMill; - bool isBlackLosebutNotDrawWhenBoardFull; + bool isBlackLoseButNotDrawWhenBoardFull; bool isLoseButNotChangeSideWhenNoWay; bool allowFlyWhenRemainThreePieces; int maxStepsLedToDraw;