mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
parent
ecd3218b6b
commit
1781439fc2
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ struct ButterflyHistory : public ButterflyBoards {
|
|||
void update(Color c, Move m, int v) {
|
||||
|
||||
const int D = 324;
|
||||
int& entry = (*this)[c][from_to(m)];
|
||||
auto& entry = (*this)[c][from_to(m)];
|
||||
|
||||
assert(abs(v) <= D); // Consistency check for below formula
|
||||
|
||||
|
@ -68,7 +68,7 @@ struct PieceToHistory : public PieceToBoards {
|
|||
void update(Piece pc, Square to, int v) {
|
||||
|
||||
const int D = 936;
|
||||
int& entry = (*this)[pc][to];
|
||||
auto& entry = (*this)[pc][to];
|
||||
|
||||
assert(abs(v) <= D); // Consistency check for below formula
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue