/// Variables
- MovePicker::MovegenPhase PhaseTable[32];
int MainSearchPhaseIndex;
int EvasionsPhaseIndex;
int QsearchWithChecksPhaseIndex;
}
+// Static array definition
+MovePicker::MovegenPhase MovePicker::PhaseTable[32];
+
////
//// Functions
/// class. It returns a new legal move every time it is called, until there
/// are no more moves left of the types we are interested in.
-Move MovePicker::get_next_move(MovegenPhase* moveType) {
+Move MovePicker::get_next_move() {
Move move;
while(true) {
// Next phase:
phaseIndex++;
- if (moveType)
- *moveType = PhaseTable[phaseIndex];
-
switch(PhaseTable[phaseIndex]) {
case PH_TT_MOVE: