shogi
LLR: 2.98 (-2.94,2.94) [0.00,10.00]
Total: 848 W: 464 L: 352 D: 32
minishogi
LLR: 3.03 (-2.94,2.94) [-10.00,5.00]
Total: 990 W: 485 L: 427 D: 78
crazyhouse STC
LLR: 2.98 (-2.94,2.94) [-10.00,5.00]
Total: 1223 W: 629 L: 570 D: 24
http://35.161.250.236:6543/tests/view/
5c014b236e23db7639060cc0
attackedBy2[Us] = attackedBy[Us][KING] & attackedBy[Us][PAWN];
// Init our king safety tables only if we are going to use them
- if (pos.count<KING>(Us) && pos.non_pawn_material(Them) >= RookValueMg + KnightValueMg)
+ if ((pos.count<KING>(Us) && pos.non_pawn_material(Them) >= RookValueMg + KnightValueMg) || pos.captures_to_hand())
{
kingRing[Us] = attackedBy[Us][KING];
if (relative_rank(Us, pos.square<KING>(Us), pos.max_rank()) == RANK_1)
Score score = pe->king_safety<Us>(pos, ksq);
// Main king safety evaluation
- if (kingAttackersCount[Them] > 1 - pos.count<QUEEN>(Them))
+ if ((kingAttackersCount[Them] > 1 - pos.count<QUEEN>(Them)) || pos.captures_to_hand())
{
int kingDanger = 0;
unsafeChecks = 0;