Merge official-stockfish/master
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 17 Jul 2021 20:13:34 +0000 (22:13 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 17 Jul 2021 20:13:34 +0000 (22:13 +0200)
No functional change.

1  2 
src/position.h

diff --cc 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);