mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Remove minimum to contribution from king danger to score.
STC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 24858 W: 4559 L: 4445 D: 15854 LTC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 40789 W: 5338 L: 5244 D: 30207 Bench: 7027489 Closes #1059
This commit is contained in:
parent
72a501c6fe
commit
b258b4fee7
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ namespace {
|
||||||
|
|
||||||
// Transform the kingDanger units into a Score, and substract it from the evaluation
|
// Transform the kingDanger units into a Score, and substract it from the evaluation
|
||||||
if (kingDanger > 0)
|
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
|
// King tropism: firstly, find squares that opponent attacks in our king flank
|
||||||
|
|
Loading…
Add table
Reference in a new issue