- const int WeightMobilityMidgameInternal = 0x0FA;
- const int WeightMobilityEndgameInternal = 0x10A;
- const int WeightPawnStructureMidgameInternal = 0x0EC;
- const int WeightPawnStructureEndgameInternal = 0x0CD;
- const int WeightPassedPawnsMidgameInternal = 0x108;
- const int WeightPassedPawnsEndgameInternal = 0x109;
- const int WeightKingSafetyInternal = 0x0F7;
- const int WeightKingOppSafetyInternal = 0x101;
- const int WeightSpaceInternal = 0x02F;
-
- // Visually better to define tables constants
- typedef Value V;
-
- // Knight mobility bonus in middle game and endgame, indexed by the number
- // of attacked squares not occupied by friendly piecess.
- const Value MidgameKnightMobilityBonus[] = {
- // 0 1 2 3 4 5 6 7 8
- V(-30), V(-20),V(-10), V(0), V(10), V(20), V(25), V(30), V(30)
- };
-
- const Value EndgameKnightMobilityBonus[] = {
- // 0 1 2 3 4 5 6 7 8
- V(-30), V(-20),V(-10), V(0), V(10), V(20), V(25), V(30), V(30)
- };
-
- // Bishop mobility bonus in middle game and endgame, indexed by the number
- // of attacked squares not occupied by friendly pieces. X-ray attacks through
- // queens are also included.
- const Value MidgameBishopMobilityBonus[] = {
- // 0 1 2 3 4 5 6 7
- V(-30), V(-15), V(0), V(15), V(30), V(45), V(58), V(66),
- // 8 9 10 11 12 13 14 15
- V( 72), V( 76), V(78), V(80), V(81), V(82), V(83), V(83)
- };
-
- const Value EndgameBishopMobilityBonus[] = {
- // 0 1 2 3 4 5 6 7
- V(-30), V(-15), V(0), V(15), V(30), V(45), V(58), V(66),
- // 8 9 10 11 12 13 14 15
- V( 72), V( 76), V(78), V(80), V(81), V(82), V(83), V(83)
- };
-
- // Rook mobility bonus in middle game and endgame, indexed by the number
- // of attacked squares not occupied by friendly pieces. X-ray attacks through
- // queens and rooks are also included.
- const Value MidgameRookMobilityBonus[] = {
- // 0 1 2 3 4 5 6 7
- V(-18), V(-12), V(-6), V(0), V(6), V(12), V(16), V(21),
- // 8 9 10 11 12 13 14 15
- V( 24), V( 27), V(28), V(29), V(30), V(31), V(32), V(33)
- };
-
- const Value EndgameRookMobilityBonus[] = {
- // 0 1 2 3 4 5 6 7
- V(-30), V(-18), V(-6), V(6), V(18), V(30), V(42), V(54),
- // 8 9 10 11 12 13 14 15
- V( 66), V( 74), V(78), V(80), V(81), V(82), V(83), V(83)
- };
-
- // Queen mobility bonus in middle game and endgame, indexed by the number
- // of attacked squares not occupied by friendly pieces.
- const Value MidgameQueenMobilityBonus[] = {
- // 0 1 2 3 4 5 6 7
- V(-10), V(-8), V(-6), V(-4), V(-2), V( 0), V( 2), V( 4),
- // 8 9 10 11 12 13 14 15
- V( 6), V( 8), V(10), V(12), V(13), V(14), V(15), V(16),
- // 16 17 18 19 20 21 22 23
- V( 16), V(16), V(16), V(16), V(16), V(16), V(16), V(16),
- // 24 25 26 27 28 29 30 31
- V( 16), V(16), V(16), V(16), V(16), V(16), V(16), V(16)