1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

MovePicker, remove a variable

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2009-01-25 13:52:35 +01:00
parent c6d62b7da5
commit d5b77ad45e
2 changed files with 5 additions and 5 deletions

View file

@ -151,7 +151,7 @@ Move MovePicker::get_next_move() {
break;
case PH_BAD_CAPTURES:
badCapturesPicked = 0;
movesPicked = 0;
break;
case PH_NONCAPTURES:
@ -434,12 +434,12 @@ Move MovePicker::pick_move_from_list() {
case PH_BAD_CAPTURES:
assert(!pos.is_check());
assert(badCapturesPicked >= 0);
assert(movesPicked >= 0);
// It's probably a good idea to use SEE move ordering here, instead
// of just picking the first move. FIXME
while (badCapturesPicked < numOfBadCaptures)
while (movesPicked < numOfBadCaptures)
{
move = badCaptures[badCapturesPicked++].move;
move = badCaptures[movesPicked++].move;
if ( move != ttMove
&& move != mateKiller
&& pos.pl_move_is_legal(move, pinned))

View file

@ -90,7 +90,7 @@ private:
Depth depth;
int phaseIndex;
int numOfMoves, numOfBadCaptures;
int movesPicked, badCapturesPicked;
int movesPicked;
bool finished;
};