mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Fixed compile errors.
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
#include "bitboard.h"
|
||||
#include "types.h"
|
||||
|
||||
#include "eval/nnue/nnue_accumulator.h"
|
||||
|
||||
|
||||
/// StateInfo struct stores information needed to restore a Position object to
|
||||
/// its previous state when we retract a move. Whenever a move is made on the
|
||||
@@ -54,6 +56,11 @@ struct StateInfo {
|
||||
Bitboard blockersForKing[COLOR_NB];
|
||||
Bitboard pinners[COLOR_NB];
|
||||
Bitboard checkSquares[PIECE_TYPE_NB];
|
||||
|
||||
Eval::NNUE::Accumulator accumulator;
|
||||
|
||||
// <20>]<5D><><EFBFBD>l<EFBFBD>̍<EFBFBD><CC8D><EFBFBD><EFBFBD>v<EFBFBD>Z<EFBFBD>̊Ǘ<CC8A><C797>p
|
||||
Eval::DirtyPiece dirtyPiece;
|
||||
};
|
||||
|
||||
/// A list to keep track of the position states along the setup moves (from the
|
||||
@@ -165,6 +172,15 @@ public:
|
||||
bool pos_is_ok() const;
|
||||
void flip();
|
||||
|
||||
// --- StateInfo
|
||||
|
||||
// <20><><EFBFBD>݂̋ǖʂɑΉ<C991><CE89><EFBFBD><EFBFBD><EFBFBD>StateInfo<66><6F><EFBFBD>Ԃ<EFBFBD><D482>B
|
||||
// <20><><EFBFBD>Ƃ<EFBFBD><C682>Astate()->capturedPiece<63>ł<EFBFBD><C582><EFBFBD><EFBFBD>A<CE81>O<EFBFBD>ǖʂŕߊl<DF8A><6C><EFBFBD>ꂽ<EFBFBD><EFBFBD>i<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>B
|
||||
StateInfo* state() const { return st; }
|
||||
|
||||
// <20>]<5D><><EFBFBD><EFBFBD><D690>Ŏg<C58E><67><EFBFBD><EFBFBD><EFBFBD>߂́A<CC81>ǂ̋<C782><CC8B>ԍ<EFBFBD><D48D>̋<CC8B>ǂ<EFBFBD><C782>ɂ<EFBFBD><C982>邩<EFBFBD>Ȃǂ̏<C782><CC8F><EFBFBD><EFBFBD>B
|
||||
const Eval::EvalList* eval_list() const { return &evalList; }
|
||||
|
||||
private:
|
||||
// Initialization helpers (used while setting up a position)
|
||||
void set_castling_right(Color c, Square rfrom);
|
||||
@@ -194,6 +210,9 @@ private:
|
||||
Thread* thisThread;
|
||||
StateInfo* st;
|
||||
bool chess960;
|
||||
|
||||
// <20>]<5D><><EFBFBD><EFBFBD><D690>ŗp<C597><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃<EFBFBD><CC83>X<EFBFBD>g
|
||||
Eval::EvalList evalList;
|
||||
};
|
||||
|
||||
namespace PSQT {
|
||||
|
||||
Reference in New Issue
Block a user