1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

Simplify attackUnits formula

Use '/ 8' instead of '* 31 / 256'

Passed STC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 55077 W: 10999 L: 10940 D: 33138

And LTC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 14751 W: 2530 L: 2400 D: 9821

bench: 7911944
This commit is contained in:
Marco Costalba 2015-02-17 08:23:35 +01:00
parent d65f75c153
commit 6656ed8904

View file

@ -417,7 +417,7 @@ namespace {
+ 8 * ei.kingAdjacentZoneAttacksCount[Them] + 8 * ei.kingAdjacentZoneAttacksCount[Them]
+ 25 * popcount<Max15>(undefended) + 25 * popcount<Max15>(undefended)
+ 11 * (ei.pinnedPieces[Us] != 0) + 11 * (ei.pinnedPieces[Us] != 0)
- mg_value(score) * 31 / 256 - mg_value(score) / 8
- !pos.count<QUEEN>(Them) * 60; - !pos.count<QUEEN>(Them) * 60;
// Analyse the enemy's safe queen contact checks. Firstly, find the // Analyse the enemy's safe queen contact checks. Firstly, find the