From: Fabian Fichter Date: Sat, 17 Jul 2021 20:13:34 +0000 (+0200) Subject: Merge official-stockfish/master X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9eca0ced7b0b4ebdf6e9dcf7c62ddb26cdc071aa;p=fairystockfish.git Merge official-stockfish/master No functional change. --- 9eca0ced7b0b4ebdf6e9dcf7c62ddb26cdc071aa diff --cc src/position.h index 7e4164b,e6b072b..7655aa9 --- a/src/position.h +++ b/src/position.h @@@ -59,24 -51,11 +59,24 @@@ struct StateInfo // Not copied when making a move (will be recomputed anyhow) Key key; Bitboard checkersBB; - Piece capturedPiece; + Piece unpromotedCapturedPiece; + Piece unpromotedBycatch[SQUARE_NB]; + Bitboard promotedBycatch; + Bitboard demotedBycatch; StateInfo* previous; Bitboard blockersForKing[COLOR_NB]; Bitboard pinners[COLOR_NB]; Bitboard checkSquares[PIECE_TYPE_NB]; + Piece capturedPiece; + Bitboard nonSlidingRiders; + Bitboard flippedPieces; + Bitboard pseudoRoyals; + OptBool legalCapture; + bool capturedpromoted; + bool shak; + bool bikjang; + bool pass; + Move move; int repetition; // Used by NNUE @@@ -329,19 -197,7 +331,17 @@@ private int gamePly; Color sideToMove; Score psq; - Thread* thisThread; - StateInfo* st; + + // variant-specific + const Variant* var; + bool tsumeMode; bool chess960; + int pieceCountInHand[COLOR_NB][PIECE_TYPE_NB]; + Bitboard promotedPieces; + void add_to_hand(Piece pc); + void remove_from_hand(Piece pc); + void drop_piece(Piece pc_hand, Piece pc_drop, Square s); + void undrop_piece(Piece pc_hand, Square s); }; extern std::ostream& operator<<(std::ostream& os, const Position& pos);