lazy accumulator updates with finny tables 1632393
This commit is contained in:
1 parent
dd831d14bf
commit
1e41671002
8 files changed
+422
-207
No files matched your search
+8
-2
@@ -26,7 +26,9 @@ public:
|
||||
std::array<Bitboard, 2> pinned;
|
||||
Bitboard checkers;
|
||||
|
||||
ACC::AccumulatorPair accPair;
|
||||
ACC::Update accUpdate;
|
||||
bool mirroredWhite = false;
|
||||
bool mirroredBlack = false;
|
||||
|
||||
std::array<Bitboard, 6> pieceThreats;
|
||||
std::array<Bitboard, 2> colorThreats;
|
||||
@@ -63,7 +65,11 @@ public:
|
||||
void ListMoves();
|
||||
|
||||
ACC::BucketPair GetBuckets();
|
||||
void ResetAccPair();
|
||||
void RefreshAccumulator(ACC::AccumulatorPair& out) const;
|
||||
void UpdateAccumulator(ACC::AccStack& stack, int ply);
|
||||
void RefreshPerspective(ACC::FinnyTable& finny, bool perspective, ACC::Accumulator& out) const;
|
||||
void ApplyDeltaPerspective(bool perspective, ACC::Accumulator& dst, const ACC::Accumulator& src) const;
|
||||
void MarkAccumulatorDirty() { accUpdate.setRefresh(); }
|
||||
|
||||
int GetPieceType(int square);
|
||||
int GetPieceColor(int square);
|
||||
|
||||
Reference in new issue
Block a user