Small cleanups

closes https://github.com/official-stockfish/Stockfish/pull/2546

No functional change.
This commit is contained in:
Joost VandeVondele
2020-03-01 09:31:17 +01:00
parent f27339d35b
commit c6839a2615
8 changed files with 37 additions and 41 deletions

View File

@@ -22,11 +22,6 @@
#include "types.h"
Value PieceValue[PHASE_NB][PIECE_NB] = {
{ VALUE_ZERO, PawnValueMg, KnightValueMg, BishopValueMg, RookValueMg, QueenValueMg },
{ VALUE_ZERO, PawnValueEg, KnightValueEg, BishopValueEg, RookValueEg, QueenValueEg }
};
namespace PSQT {
#define S(mg, eg) make_score(mg, eg)
@@ -112,9 +107,6 @@ void init() {
for (Piece pc = W_PAWN; pc <= W_KING; ++pc)
{
PieceValue[MG][~pc] = PieceValue[MG][pc];
PieceValue[EG][~pc] = PieceValue[EG][pc];
Score score = make_score(PieceValue[MG][pc], PieceValue[EG][pc]);
for (Square s = SQ_A1; s <= SQ_H8; ++s)