X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=03d8bf8ce5f796da279297306f61104165afbc51;hb=25296547d0258f8519b7614e4474bbc947eaea04;hp=69a756d9ce9b0b68ab0eecce7758a4ced1e05401;hpb=321a27fbe3b5af9961b99585ddd365a9cc855e38;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index 69a756d9..03d8bf8c 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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.