Skip to content

Commit

Permalink
Penalizing king safety score for checks taken.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddugovic committed May 6, 2015
1 parent ba17f5a commit 6cb5e87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pawns.cpp
Expand Up @@ -291,6 +291,10 @@ Value Entry::shelter_storm(const Position& pos, Square ksq) {
[std::min(f, FILE_H - f)][rkThem];
}

#ifdef THREECHECK
if (pos.is_three_check())
safety -= pos.checks_taken();
#endif
return safety;
}

Expand Down

0 comments on commit 6cb5e87

Please sign in to comment.