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:
Marco Costalba
2008-11-15 13:00:56 +01:00
parent f4758ced90
commit 20d7197a9b
5 changed files with 39 additions and 15 deletions

View File

@@ -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--)
{