]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Move Pieces[] out of global visibility
[stockfish] / src / position.cpp
index 69a756d9ce9b0b68ab0eecce7758a4ced1e05401..03d8bf8ce5f796da279297306f61104165afbc51 100644 (file)
@@ -52,6 +52,9 @@ namespace {
 
 const string PieceToChar(" PNBRQK  pnbrqk");
 
+const Piece Pieces[] = { W_PAWN, W_KNIGHT, W_BISHOP, W_ROOK, W_QUEEN, W_KING,
+                         B_PAWN, B_KNIGHT, B_BISHOP, B_ROOK, B_QUEEN, B_KING };
+
 // min_attacker() is a helper function used by see_ge() to locate the least
 // valuable attacker for the side to move, remove the attacker we just found
 // from the bitboards and scan for new X-ray attacks behind it.