mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
A small simplification in movepick.h
No functional change Resolves #597
This commit is contained in:
parent
04be84e0e2
commit
60590577f2
1 changed files with 1 additions and 5 deletions
|
@ -46,11 +46,7 @@ struct Stats {
|
||||||
T* operator[](Piece pc) { return table[pc]; }
|
T* operator[](Piece pc) { return table[pc]; }
|
||||||
void clear() { std::memset(table, 0, sizeof(table)); }
|
void clear() { std::memset(table, 0, sizeof(table)); }
|
||||||
|
|
||||||
void update(Piece pc, Square to, Move m) {
|
void update(Piece pc, Square to, Move m) { table[pc][to] = m; }
|
||||||
|
|
||||||
if (m != table[pc][to])
|
|
||||||
table[pc][to] = m;
|
|
||||||
}
|
|
||||||
|
|
||||||
void update(Piece pc, Square to, Value v) {
|
void update(Piece pc, Square to, Value v) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue