-/// Pawns::init() initializes some tables needed by evaluation. Instead of using
-/// hard-coded tables, when makes sense, we prefer to calculate them with a formula
-/// to reduce independent parameters and to allow easier tuning and better insight.
-
-void init() {
-
- static constexpr int Seed[RANK_NB] = { 0, 13, 24, 18, 65, 100, 175, 330 };
-
- for (int opposed = 0; opposed <= 1; ++opposed)
- for (int phalanx = 0; phalanx <= 1; ++phalanx)
- for (int support = 0; support <= 2; ++support)
- for (Rank r = RANK_2; r < RANK_8; ++r)
- {
- int v = 17 * support;
- v += (Seed[r] + (phalanx ? (Seed[r + 1] - Seed[r]) / 2 : 0)) >> opposed;
-
- Connected[opposed][phalanx][support][r] = make_score(v, v * (r - 2) / 4);
- }
-}
-
-