summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a18c2c2)
Testing the release candidate revealed only one minor issue, namely a new warning -Wimplicit-fallthrough (part of -Wextra) triggers in the movepicker. This can be silenced by adding a comment, and once we move to c++17 by adding a standard annotation [[fallthrough]];.
No functional change.
Closes #1090
endMoves = generate<CAPTURES>(pos, cur);
score<CAPTURES>();
++stage;
endMoves = generate<CAPTURES>(pos, cur);
score<CAPTURES>();
++stage;
case GOOD_CAPTURES:
while (cur < endMoves)
case GOOD_CAPTURES:
while (cur < endMoves)
&& pos.pseudo_legal(move)
&& !pos.capture(move))
return move;
&& pos.pseudo_legal(move)
&& !pos.capture(move))
return move;
&& pos.pseudo_legal(move)
&& !pos.capture(move))
return move;
&& pos.pseudo_legal(move)
&& !pos.capture(move))
return move;
case COUNTERMOVE:
++stage;
case COUNTERMOVE:
++stage;
&& pos.pseudo_legal(move)
&& !pos.capture(move))
return move;
&& pos.pseudo_legal(move)
&& !pos.capture(move))
return move;
case QUIET_INIT:
cur = endBadCaptures;
case QUIET_INIT:
cur = endBadCaptures;
score<QUIETS>();
partial_insertion_sort(cur, endMoves, -4000 * depth / ONE_PLY);
++stage;
score<QUIETS>();
partial_insertion_sort(cur, endMoves, -4000 * depth / ONE_PLY);
++stage;
case QUIET:
while ( cur < endMoves
case QUIET:
while ( cur < endMoves
}
++stage;
cur = moves; // Point to beginning of bad captures
}
++stage;
cur = moves; // Point to beginning of bad captures
case BAD_CAPTURES:
if (cur < endBadCaptures)
case BAD_CAPTURES:
if (cur < endBadCaptures)
endMoves = generate<EVASIONS>(pos, cur);
score<EVASIONS>();
++stage;
endMoves = generate<EVASIONS>(pos, cur);
score<EVASIONS>();
++stage;
case ALL_EVASIONS:
while (cur < endMoves)
case ALL_EVASIONS:
while (cur < endMoves)
endMoves = generate<CAPTURES>(pos, cur);
score<CAPTURES>();
++stage;
endMoves = generate<CAPTURES>(pos, cur);
score<CAPTURES>();
++stage;
case PROBCUT_CAPTURES:
while (cur < endMoves)
case PROBCUT_CAPTURES:
while (cur < endMoves)
endMoves = generate<CAPTURES>(pos, cur);
score<CAPTURES>();
++stage;
endMoves = generate<CAPTURES>(pos, cur);
score<CAPTURES>();
++stage;
case QCAPTURES_1: case QCAPTURES_2:
while (cur < endMoves)
case QCAPTURES_1: case QCAPTURES_2:
while (cur < endMoves)
cur = moves;
endMoves = generate<QUIET_CHECKS>(pos, cur);
++stage;
cur = moves;
endMoves = generate<QUIET_CHECKS>(pos, cur);
++stage;
case QCHECKS:
while (cur < endMoves)
case QCHECKS:
while (cur < endMoves)
endMoves = generate<CAPTURES>(pos, cur);
score<CAPTURES>();
++stage;
endMoves = generate<CAPTURES>(pos, cur);
score<CAPTURES>();
++stage;
case QRECAPTURES:
while (cur < endMoves)
case QRECAPTURES:
while (cur < endMoves)