mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-18 16:16:23 +08:00
MovePicker: use EvalInfo to skip generating captures
When we know already no captures are possible in a given position. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -274,7 +274,8 @@ void Position::print(Move m) const {
|
||||
if (m != MOVE_NONE)
|
||||
{
|
||||
Position p(*this);
|
||||
std::cout << "Move is: " << move_to_san(p, m) << std::endl;
|
||||
std::string col = (color_of_piece_on(move_from(m)) == BLACK ? ".." : "");
|
||||
std::cout << "Move is: " << col << move_to_san(p, m) << std::endl;
|
||||
}
|
||||
for (Rank rank = RANK_8; rank >= RANK_1; rank--)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user