mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 01:29:36 +00:00
Remove some obsolete code in movepick.cpp
This fixes some warning under Intel compiler. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
dcdac83187
commit
941f4e1643
1 changed files with 2 additions and 15 deletions
|
@ -45,9 +45,7 @@ namespace {
|
||||||
int MainSearchPhaseIndex;
|
int MainSearchPhaseIndex;
|
||||||
int EvasionsPhaseIndex;
|
int EvasionsPhaseIndex;
|
||||||
int QsearchWithChecksPhaseIndex;
|
int QsearchWithChecksPhaseIndex;
|
||||||
int QsearchNoCapturesPhaseIndex;
|
|
||||||
int QsearchWithoutChecksPhaseIndex;
|
int QsearchWithoutChecksPhaseIndex;
|
||||||
int NoMovesPhaseIndex;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,11 +75,6 @@ MovePicker::MovePicker(const Position& p, bool pv, Move ttm,
|
||||||
numOfMoves = 0;
|
numOfMoves = 0;
|
||||||
numOfBadCaptures = 0;
|
numOfBadCaptures = 0;
|
||||||
|
|
||||||
// With EvalInfo we are able to know how many captures are possible before
|
|
||||||
// generating them. So avoid generating in case we know are zero.
|
|
||||||
Color us = pos.side_to_move();
|
|
||||||
Color them = opposite_color(us);
|
|
||||||
|
|
||||||
if (p.is_check())
|
if (p.is_check())
|
||||||
phaseIndex = EvasionsPhaseIndex;
|
phaseIndex = EvasionsPhaseIndex;
|
||||||
else if (depth > Depth(0))
|
else if (depth > Depth(0))
|
||||||
|
@ -91,6 +84,8 @@ MovePicker::MovePicker(const Position& p, bool pv, Move ttm,
|
||||||
else
|
else
|
||||||
phaseIndex = QsearchWithoutChecksPhaseIndex;
|
phaseIndex = QsearchWithoutChecksPhaseIndex;
|
||||||
|
|
||||||
|
Color us = pos.side_to_move();
|
||||||
|
|
||||||
dc = p.discovered_check_candidates(us);
|
dc = p.discovered_check_candidates(us);
|
||||||
pinned = p.pinned_pieces(us);
|
pinned = p.pinned_pieces(us);
|
||||||
|
|
||||||
|
@ -520,17 +515,9 @@ void MovePicker::init_phase_table() {
|
||||||
PhaseTable[i++] = PH_QCHECKS;
|
PhaseTable[i++] = PH_QCHECKS;
|
||||||
PhaseTable[i++] = PH_STOP;
|
PhaseTable[i++] = PH_STOP;
|
||||||
|
|
||||||
// Quiescence search with checks only and no captures
|
|
||||||
QsearchNoCapturesPhaseIndex = i - 1;
|
|
||||||
PhaseTable[i++] = PH_QCHECKS;
|
|
||||||
PhaseTable[i++] = PH_STOP;
|
|
||||||
|
|
||||||
// Quiescence search without checks
|
// Quiescence search without checks
|
||||||
QsearchWithoutChecksPhaseIndex = i - 1;
|
QsearchWithoutChecksPhaseIndex = i - 1;
|
||||||
PhaseTable[i++] = PH_QCAPTURES;
|
PhaseTable[i++] = PH_QCAPTURES;
|
||||||
PhaseTable[i++] = PH_STOP;
|
PhaseTable[i++] = PH_STOP;
|
||||||
|
|
||||||
// Do not generate any move
|
|
||||||
NoMovesPhaseIndex = i - 1;
|
|
||||||
PhaseTable[i++] = PH_STOP;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue