mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Generate pseudo-legal moves in generate_evasions()
This allow a big semplification in move generation that will be committed with the next patch. And makes handling of evasions similar to the other type of moves. This patch plus the next seem to improve also on the performance side because after 640 games to verify there are no hidden regressions we are at +9 ELO Verified with perft no functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -318,11 +318,16 @@ Move MovePicker::get_next_move() {
|
||||
return move;
|
||||
break;
|
||||
|
||||
case PH_EVASIONS:
|
||||
case PH_BAD_CAPTURES:
|
||||
move = pick_best(curMove++, lastMove).move;
|
||||
return move;
|
||||
|
||||
case PH_EVASIONS:
|
||||
move = pick_best(curMove++, lastMove).move;
|
||||
if (pos.pl_move_is_legal(move, pinned))
|
||||
return move;
|
||||
break;
|
||||
|
||||
case PH_QCAPTURES:
|
||||
move = pick_best(curMove++, lastMove).move;
|
||||
if ( move != ttMoves[0].move
|
||||
|
||||
Reference in New Issue
Block a user