X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=34c427d4e21227d6f5903993572f047c2a06a0d3;hp=4aa0efb60bfb4998de0d33d7148f4ab5bfca5110;hb=6571acffaa08755fe83292a84ba4c762632bed82;hpb=5cf9e0b254262094efb2bdb9f81d213c515b102e diff --git a/src/position.h b/src/position.h index 4aa0efb6..34c427d4 100644 --- a/src/position.h +++ b/src/position.h @@ -171,22 +171,15 @@ private: // Initialization helpers (used while setting up a position) void clear(); void set_castling_right(Color c, Square rfrom); + void set_state(StateInfo* si) const; // Helper functions - void do_castling(Square kfrom, Square kto, Square rfrom, Square rto); Bitboard check_blockers(Color c, Color kingColor) const; void put_piece(Square s, Color c, PieceType pt); void remove_piece(Square s, Color c, PieceType pt); void move_piece(Square from, Square to, Color c, PieceType pt); - - // Computing hash keys from scratch (for initialization and debugging) - Key compute_key() const; - Key compute_pawn_key() const; - Key compute_material_key() const; - - // Computing incremental evaluation scores and material counts - Score compute_psq_score() const; - Value compute_non_pawn_material(Color c) const; + template + void do_castling(Square from, Square& to, Square& rfrom, Square& rto); // Board and pieces Piece board[SQUARE_NB];