1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03: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; break;
case PH_BAD_CAPTURES: case PH_BAD_CAPTURES:
badCapturesPicked = 0; movesPicked = 0;
break; break;
case PH_NONCAPTURES: case PH_NONCAPTURES:
@ -434,12 +434,12 @@ Move MovePicker::pick_move_from_list() {
case PH_BAD_CAPTURES: case PH_BAD_CAPTURES:
assert(!pos.is_check()); assert(!pos.is_check());
assert(badCapturesPicked >= 0); assert(movesPicked >= 0);
// It's probably a good idea to use SEE move ordering here, instead // It's probably a good idea to use SEE move ordering here, instead
// of just picking the first move. FIXME // of just picking the first move. FIXME
while (badCapturesPicked < numOfBadCaptures) while (movesPicked < numOfBadCaptures)
{ {
move = badCaptures[badCapturesPicked++].move; move = badCaptures[movesPicked++].move;
if ( move != ttMove if ( move != ttMove
&& move != mateKiller && move != mateKiller
&& pos.pl_move_is_legal(move, pinned)) && pos.pl_move_is_legal(move, pinned))

View file

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