X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=516f3f1b0c1bda1d2c3f2ba47f3f342ca7f22740;hp=f8f61b55a981c2d5cdd4c93e6d4cbe1e4a8ef455;hb=4502a1934f2d624288b635b5901ecda8cefa342c;hpb=dc130042831cdb52994aa8165b1cf8f49eef8640 diff --git a/src/position.h b/src/position.h index f8f61b55..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,7 +145,6 @@ public: bool opposite_bishops() const; // Doing and undoing moves - void do_move(Move m, StateInfo& st); void do_move(Move m, StateInfo& st, bool givesCheck); void undo_move(Move m); void do_null_move(StateInfo& st);