// Transform the kingDanger units into a Score, and substract it from the evaluation
if (kingDanger > 0)
- score -= make_score(std::min(kingDanger * kingDanger / 4096, 2 * int(BishopValueMg)), 0);
+ score -= make_score(kingDanger * kingDanger / 4096, 0);
}
// King tropism: firstly, find squares that opponent attacks in our king flank