X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.h;h=8d3393faaa18b20c0fdbcafba1a7a3cee8c25fb5;hb=64a71c3c02bdadfa80bed50fe5ba96984328627a;hp=5d3048ae5cfdf305c34ca78683de2ab6683d5b4b;hpb=41641e3b1eea0038ab6984766d2b3bca869be7fa;p=stockfish diff --git a/src/position.h b/src/position.h index 5d3048ae..8d3393fa 100644 --- a/src/position.h +++ b/src/position.h @@ -141,8 +141,8 @@ public: void undo_null_move(); // Static exchange evaluation - int see(Move m) const; - int see_sign(Move m) const; + Value see(Move m) const; + Value see_sign(Move m) const; // Accessing hash keys Key key() const; @@ -206,7 +206,7 @@ private: Color sideToMove; Thread* thisThread; StateInfo* st; - int chess960; + bool chess960; }; inline uint64_t Position::nodes_searched() const { @@ -403,7 +403,6 @@ inline void Position::put_piece(Square s, Color c, PieceType pt) { byTypeBB[ALL_PIECES] |= s; byTypeBB[pt] |= s; byColorBB[c] |= s; - pieceCount[c][ALL_PIECES]++; index[s] = pieceCount[c][pt]++; pieceList[c][pt][index[s]] = s; } @@ -432,7 +431,6 @@ inline void Position::remove_piece(Square s, Color c, PieceType pt) { byTypeBB[pt] ^= s; byColorBB[c] ^= s; /* board[s] = NO_PIECE; */ // Not needed, will be overwritten by capturing - pieceCount[c][ALL_PIECES]--; Square lastSquare = pieceList[c][pt][--pieceCount[c][pt]]; index[lastSquare] = index[s]; pieceList[c][pt][index[lastSquare]] = lastSquare;