-
-
-/// init() computes evaluation weights, usually at startup
-
-void Eval::init() {
-
- const int MaxSlope = 322;
- const int Peak = 47410;
- int t = 0;
-
- for (int i = 0; i < 400; ++i)
- {
- t = std::min(Peak, std::min(i * i - 16, t + MaxSlope));
- KingDanger[i] = make_score(t * 268 / 7700, 0);
- }
-}