X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=516f3f1b0c1bda1d2c3f2ba47f3f342ca7f22740;hp=fd3eedbaacd6e52a88ecdc9f68d9243b01a9fd77;hb=4502a1934f2d624288b635b5901ecda8cefa342c;hpb=0af24a14455bbcde181fff7632722ce55419991e diff --git a/src/position.h b/src/position.h index fd3eedba..516f3f1b 100644 --- a/src/position.h +++ b/src/position.h @@ -30,6 +30,13 @@ class Position; struct Thread; +namespace PSQT { + + extern Score psq[COLOR_NB][PIECE_TYPE_NB][SQUARE_NB]; + + void init(); +} + /// CheckInfo struct is initialized at c'tor time and keeps info used to detect /// if a move gives check. @@ -39,7 +46,7 @@ struct CheckInfo { Bitboard dcCandidates; Bitboard pinned; - Bitboard checkSq[PIECE_TYPE_NB]; + Bitboard checkSquares[PIECE_TYPE_NB]; Square ksq; }; @@ -138,8 +145,7 @@ public: bool opposite_bishops() const; // Doing and undoing moves - void do_move(Move m, StateInfo& st); - void do_move(Move m, StateInfo& st, const CheckInfo& ci, bool givesCheck); + void do_move(Move m, StateInfo& st, bool givesCheck); void undo_move(Move m); void do_null_move(StateInfo& st); void undo_null_move();