- // 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 Score RookMobilityBonus[16] = {
- S(-20,-36), S(-14,-19), S(-8, -3), S(-2, 13),
- S( 4, 29), S( 10, 46), S(14, 62), S(19, 79),
- S( 23, 95), S( 26,106), S(27,111), S(28,114),
- S( 29,116), S( 30,117), S(31,118), S(32,118)
- };
-
- // Queen mobility bonus in middle game and endgame, indexed by the number
- // of attacked squares not occupied by friendly pieces.
- const Score QueenMobilityBonus[32] = {
- S(-10,-18), S(-8,-13), S(-6, -7), S(-3, -2), S(-1, 3), S( 1, 8),
- S( 3, 13), S( 5, 19), S( 8, 23), S(10, 27), S(12, 32), S(15, 34),
- S( 16, 35), S(17, 35), S(18, 35), S(20, 35), S(20, 35), S(20, 35),
- S( 20, 35), S(20, 35), S(20, 35), S(20, 35), S(20, 35), S(20, 35),
- S( 20, 35), S(20, 35), S(20, 35), S(20, 35), S(20, 35), S(20, 35),
- S( 20, 35), S(20, 35)
- };
-
- // Pointers table to access mobility tables through piece type
- const Score* MobilityBonus[8] = { 0, 0, KnightMobilityBonus, BishopMobilityBonus,
- RookMobilityBonus, QueenMobilityBonus, 0, 0 };
-
- // Outpost bonuses for knights and bishops, indexed by square (from white's
- // point of view).
- const Value KnightOutpostBonus[64] = {
- // A B C D E F G H
- V(0), V(0), V(0), V(0), V(0), V(0), V(0), V(0), // 1
- V(0), V(0), V(0), V(0), V(0), V(0), V(0), V(0), // 2
- V(0), V(0), V(4), V(8), V(8), V(4), V(0), V(0), // 3
- V(0), V(4),V(17),V(26),V(26),V(17), V(4), V(0), // 4
- V(0), V(8),V(26),V(35),V(35),V(26), V(8), V(0), // 5
- V(0), V(4),V(17),V(17),V(17),V(17), V(4), V(0), // 6
- V(0), V(0), V(0), V(0), V(0), V(0), V(0), V(0), // 7
- V(0), V(0), V(0), V(0), V(0), V(0), V(0), V(0) // 8
- };
-
- const Value BishopOutpostBonus[64] = {