@@ -86,7 +86,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const HistoryStats&
8686 else
8787 stage = MAIN_SEARCH;
8888
89- ttMove = (ttm && pos.is_pseudo_legal (ttm) ? ttm : MOVE_NONE);
89+ ttMove = (ttm && pos.pseudo_legal (ttm) ? ttm : MOVE_NONE);
9090 end += (ttMove != MOVE_NONE);
9191}
9292
@@ -108,7 +108,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const HistoryStats&
108108 // Skip TT move if is not a capture or a promotion, this avoids qsearch
109109 // tree explosion due to a possible perpetual check or similar rare cases
110110 // when TT table is full.
111- if (ttm && !pos.is_capture_or_promotion (ttm))
111+ if (ttm && !pos.capture_or_promotion (ttm))
112112 ttm = MOVE_NONE;
113113 }
114114 else
@@ -118,7 +118,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const HistoryStats&
118118 ttm = MOVE_NONE;
119119 }
120120
121- ttMove = (ttm && pos.is_pseudo_legal (ttm) ? ttm : MOVE_NONE);
121+ ttMove = (ttm && pos.pseudo_legal (ttm) ? ttm : MOVE_NONE);
122122 end += (ttMove != MOVE_NONE);
123123}
124124
@@ -131,9 +131,9 @@ MovePicker::MovePicker(const Position& p, Move ttm, const HistoryStats& h, Piece
131131
132132 // In ProbCut we generate only captures better than parent's captured piece
133133 captureThreshold = PieceValue[MG][pt];
134- ttMove = (ttm && pos.is_pseudo_legal (ttm) ? ttm : MOVE_NONE);
134+ ttMove = (ttm && pos.pseudo_legal (ttm) ? ttm : MOVE_NONE);
135135
136- if (ttMove && (!pos.is_capture (ttMove) || pos.see (ttMove) <= captureThreshold))
136+ if (ttMove && (!pos.capture (ttMove) || pos.see (ttMove) <= captureThreshold))
137137 ttMove = MOVE_NONE;
138138
139139 end += (ttMove != MOVE_NONE);
@@ -163,7 +163,7 @@ void MovePicker::score<CAPTURES>() {
163163 {
164164 m = it->move ;
165165 it->score = PieceValue[MG][pos.piece_on (to_sq (m))]
166- - type_of (pos.piece_moved (m));
166+ - type_of (pos.moved_piece (m));
167167
168168 if (type_of (m) == PROMOTION)
169169 it->score += PieceValue[MG][promotion_type (m)] - PieceValue[MG][PAWN];
@@ -181,7 +181,7 @@ void MovePicker::score<QUIETS>() {
181181 for (ExtMove* it = moves; it != end; ++it)
182182 {
183183 m = it->move ;
184- it->score = history[pos.piece_moved (m)][to_sq (m)];
184+ it->score = history[pos.moved_piece (m)][to_sq (m)];
185185 }
186186}
187187
@@ -199,11 +199,11 @@ void MovePicker::score<EVASIONS>() {
199199 if ((seeScore = pos.see_sign (m)) < 0 )
200200 it->score = seeScore - HistoryStats::Max; // At the bottom
201201
202- else if (pos.is_capture (m))
202+ else if (pos.capture (m))
203203 it->score = PieceValue[MG][pos.piece_on (to_sq (m))]
204- - type_of (pos.piece_moved (m)) + HistoryStats::Max;
204+ - type_of (pos.moved_piece (m)) + HistoryStats::Max;
205205 else
206- it->score = history[pos.piece_moved (m)][to_sq (m)];
206+ it->score = history[pos.moved_piece (m)][to_sq (m)];
207207 }
208208}
209209
@@ -317,9 +317,9 @@ Move MovePicker::next_move<false>() {
317317 case KILLERS_S1:
318318 move = (cur++)->move ;
319319 if ( move != MOVE_NONE
320- && pos.is_pseudo_legal (move)
320+ && pos.pseudo_legal (move)
321321 && move != ttMove
322- && !pos.is_capture (move))
322+ && !pos.capture (move))
323323 return move;
324324 break ;
325325
0 commit comments