static_assert(sizeof(SparseEntry) == 6, "SparseEntry must be 6 bytes");
-typedef uint16_t Sym; // Huffman symbol
+using Sym = uint16_t; // Huffman symbol
struct LR {
enum Side { Left, Right };
// first access, when the corresponding file is memory mapped.
template<TBType Type>
struct TBTable {
- typedef typename std::conditional<Type == WDL, WDLScore, int>::type Ret;
+ using Ret = typename std::conditional<Type == WDL, WDLScore, int>::type;
static constexpr int Sides = Type == WDL ? 2 : 1;
for (const Move move : moveList)
{
- if ( !pos.capture(move)
+ if ( !pos.capture_stage(move)
&& (!CheckZeroingMoves || type_of(pos.moved_piece(move)) != PAWN))
continue;
for (const Move move : MoveList<LEGAL>(pos))
{
- bool zeroing = pos.capture(move) || type_of(pos.moved_piece(move)) == PAWN;
+ bool zeroing = pos.capture_stage(move) || type_of(pos.moved_piece(move)) == PAWN;
pos.do_move(move, st);