History code rewrite (#1122)

Rearrange and rename all history heuristic code. Naming
is now based on chessprogramming.wikispaces.com conventions
and the relations among the various heuristics are now more
clear and consistent.

No functional change.
This commit is contained in:
Marco Costalba
2017-05-26 08:42:50 +02:00
committed by GitHub
parent 24df0f72c0
commit ecd3218b6b
6 changed files with 80 additions and 73 deletions

View File

@@ -421,6 +421,10 @@ inline Square to_sq(Move m) {
return Square(m & 0x3F);
}
inline int from_to(Move m) {
return m & 0xFFF;
}
inline MoveType type_of(Move m) {
return MoveType(m & (3 << 14));
}