X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=e38020d5b5a2188661103f46f4e12506ff1e48e8;hp=fd3eedbaacd6e52a88ecdc9f68d9243b01a9fd77;hb=578b21bbeedc41b6e0d1b2df46887b1636a78e2b;hpb=8f10f6c9cd250f67dc0a9a1426794802a16dcc5e diff --git a/src/position.h b/src/position.h index fd3eedba..e38020d5 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. @@ -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();