-
- sente = (Us == pos.side_to_move());
-
- // Non linear threat evaluation. Increase threats score according to the
- // number of concurrent threats and to the side to move.
- mg = (mg_value(bonus) + mg_value(bonus) * ConcurrentThreatsWeight[sente] * threatCount / 256) * ThreatsWeight[sente] / 256;
- eg = (eg_value(bonus) + eg_value(bonus) * ConcurrentThreatsWeight[sente] * threatCount / 256) * ThreatsWeight[sente] / 256;
-
- ei.value += Sign[Us] * make_score(mg, eg);