Make a version of Position::do_move() without the givesCheck parameter

In 10 of 12 calls total to Position::do_move()the givesCheck argument is
simply gives_check(m). So it's reasonable to make an overload without
this parameter, which wraps the existing version.

No functional change.
This commit is contained in:
Aram Tumanian
2016-11-11 15:02:28 +02:00
committed by Marco Costalba
parent de269ee18e
commit e6c2899020
4 changed files with 15 additions and 10 deletions

View File

@@ -76,7 +76,7 @@ namespace {
while (is >> token && (m = UCI::to_move(pos, token)) != MOVE_NONE)
{
States->push_back(StateInfo());
pos.do_move(m, States->back(), pos.gives_check(m));
pos.do_move(m, States->back());
}
}