X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=6abef5b47bcb42c764901fdc0cb7a871d7e80039;hb=b36900ef44044e9ab96637c9da7a4d7ea5b055d9;hp=b5503cb501fbbcac919ae542231942203ec8f2eb;hpb=da6e2b5fd1543445735e1c552b67b0257084eda3;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index b5503cb5..6abef5b4 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -57,7 +57,26 @@ Key Position::zobExclusion; Score Position::PieceSquareTable[16][64]; -// Material values used by SEE, indexed by PieceType +// Material values arrays, indexed by Piece +const Value Position::PieceValueMidgame[17] = { + VALUE_ZERO, + PawnValueMidgame, KnightValueMidgame, BishopValueMidgame, + RookValueMidgame, QueenValueMidgame, VALUE_ZERO, + VALUE_ZERO, VALUE_ZERO, + PawnValueMidgame, KnightValueMidgame, BishopValueMidgame, + RookValueMidgame, QueenValueMidgame +}; + +const Value Position::PieceValueEndgame[17] = { + VALUE_ZERO, + PawnValueEndgame, KnightValueEndgame, BishopValueEndgame, + RookValueEndgame, QueenValueEndgame, VALUE_ZERO, + VALUE_ZERO, VALUE_ZERO, + PawnValueEndgame, KnightValueEndgame, BishopValueEndgame, + RookValueEndgame, QueenValueEndgame +}; + +// Material values array used by SEE, indexed by PieceType const Value Position::seeValues[] = { VALUE_ZERO, PawnValueMidgame, KnightValueMidgame, BishopValueMidgame,