mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 17:19:36 +00:00
Tuned values for piece check and attack unit factors
A middle ground patch of two successful tuning patches, one at STC, the other at LTC, which now passed both. LLR: 2.95 (-2.94,2.94) [0.00,4.00] Total: 67893 W: 12777 L: 12384 D: 42732 LLR: 2.95 (-2.94,2.94) [0.00,4.00] Total: 30165 W: 4189 L: 3960 D: 22016 bench: 9209507
This commit is contained in:
parent
07b247f943
commit
3549d98d07
1 changed files with 6 additions and 6 deletions
|
@ -211,10 +211,10 @@ namespace {
|
||||||
|
|
||||||
// Penalties for enemy's safe checks
|
// Penalties for enemy's safe checks
|
||||||
const int QueenContactCheck = 89;
|
const int QueenContactCheck = 89;
|
||||||
const int QueenCheck = 52;
|
const int QueenCheck = 62;
|
||||||
const int RookCheck = 45;
|
const int RookCheck = 57;
|
||||||
const int BishopCheck = 5;
|
const int BishopCheck = 48;
|
||||||
const int KnightCheck = 17;
|
const int KnightCheck = 78;
|
||||||
|
|
||||||
|
|
||||||
// eval_init() initializes king and attack bitboards for a given color
|
// eval_init() initializes king and attack bitboards for a given color
|
||||||
|
@ -399,8 +399,8 @@ namespace {
|
||||||
// the pawn shelter (current 'score' value).
|
// the pawn shelter (current 'score' value).
|
||||||
attackUnits = std::min(72, ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them])
|
attackUnits = std::min(72, ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them])
|
||||||
+ 9 * ei.kingAdjacentZoneAttacksCount[Them]
|
+ 9 * ei.kingAdjacentZoneAttacksCount[Them]
|
||||||
+ 27 * popcount(undefended)
|
+ 21 * popcount(undefended)
|
||||||
+ 11 * (popcount(b) + !!ei.pinnedPieces[Us])
|
+ 12 * (popcount(b) + !!ei.pinnedPieces[Us])
|
||||||
- 64 * !pos.count<QUEEN>(Them)
|
- 64 * !pos.count<QUEEN>(Them)
|
||||||
- mg_value(score) / 8;
|
- mg_value(score) / 8;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue