X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=4d2d31167ea2db2641c582c545ba3c6c46b1a0fe;hp=a18c46923b60742160816fddb3d9c8ff2734dc35;hb=58c7a5c4775f7efa333bb2c921583ffba301f6b2;hpb=bbf7a94d76339837a6e8925ded1ea231d51e773d diff --git a/src/movepick.cpp b/src/movepick.cpp index a18c4692..4d2d3116 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -38,6 +38,7 @@ namespace { /// Variables + MovePicker::MovegenPhase PhaseTable[32]; int MainSearchPhaseIndex; int EvasionsPhaseIndex; int QsearchWithChecksPhaseIndex; @@ -45,8 +46,6 @@ namespace { } -// Static array definition -MovePicker::MovegenPhase MovePicker::PhaseTable[32]; //// @@ -440,6 +439,9 @@ Move MovePicker::pick_move_from_list() { return MOVE_NONE; } +MovePicker::MovegenPhase MovePicker::current_move_type() const { + return PhaseTable[phaseIndex]; +} /// MovePicker::init_phase_table() initializes the PhaseTable[], /// MainSearchPhaseIndex, EvasionPhaseIndex, QsearchWithChecksPhaseIndex