Skip to content

Commit 1eca728

Browse files
authored
Refactor sideToMove to side_to_move for consistency
1 parent 19958f3 commit 1eca728

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎eval.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ Value eval(const chess::Board &board) {
123123
constexpr int QueenPhase = 4;
124124
constexpr int TotalPhase =
125125
KnightPhase * 4 + BishopPhase * 4 + RookPhase * 4 + QueenPhase * 2;
126-
const int sign = board.sideToMove() == chess::Color::WHITE ? 1 : -1;
126+
const int sign = board.side_to_move() == WHITE ? 1 : -1;
127127
int mgScore = 0;
128128
int egScore = 0;
129129
int phase = 0;
130130
{
131-
mgScore = egScore = board.sideToMove() == WHITE ? spaceWeight : 0;
131+
mgScore = egScore = board.side_to_move() == WHITE ? spaceWeight : 0;
132132
Bitboard occ = board.occ(), occ2 = occ;
133133
while (occ) {
134134
Square sq = (Square)pop_lsb(occ), _sq = sq;

0 commit comments

Comments
 (0)