mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Unify MovePicker c'tor call
And use the standard one. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
a0f0a7dc4f
commit
0a73a23dc9
1 changed files with 2 additions and 2 deletions
|
@ -1542,7 +1542,7 @@ split_point_start: // At split points actual search starts from here
|
||||||
// to search the moves. Because the depth is <= 0 here, only captures,
|
// to search the moves. Because the depth is <= 0 here, only captures,
|
||||||
// queen promotions and checks (only if depth >= DEPTH_QS_CHECKS) will
|
// queen promotions and checks (only if depth >= DEPTH_QS_CHECKS) will
|
||||||
// be generated.
|
// be generated.
|
||||||
MovePicker mp = MovePicker(pos, ttMove, depth, H);
|
MovePicker mp(pos, ttMove, depth, H);
|
||||||
CheckInfo ci(pos);
|
CheckInfo ci(pos);
|
||||||
|
|
||||||
// Loop through the moves until no moves remain or a beta cutoff occurs
|
// Loop through the moves until no moves remain or a beta cutoff occurs
|
||||||
|
@ -2711,7 +2711,7 @@ split_point_start: // At split points actual search starts from here
|
||||||
{
|
{
|
||||||
Move move;
|
Move move;
|
||||||
int score = 1000;
|
int score = 1000;
|
||||||
MovePicker mp = MovePicker(pos, MOVE_NONE, ONE_PLY, H);
|
MovePicker mp(pos, MOVE_NONE, ONE_PLY, H);
|
||||||
|
|
||||||
while ((move = mp.get_next_move()) != MOVE_NONE)
|
while ((move = mp.get_next_move()) != MOVE_NONE)
|
||||||
for (int i = 0; i < count; i++)
|
for (int i = 0; i < count; i++)
|
||||||
|
|
Loading…
Add table
Reference in a new issue