Move move() const { return cur->move; }
size_t size() const { return last - mlist; }
bool contains(Move m) const {
- for (const MoveStack* it(mlist) ; it != last; ++it) if (it->move == m) return true;
+ for (const MoveStack* it(mlist); it != last; ++it) if (it->move == m) return true;
return false;
}
template<MoveType T>
inline Move make(Square from, Square to, PieceType pt = KNIGHT) {
- return Move(to | (from << 6) | T | ((pt - KNIGHT) << 12)) ;
+ return Move(to | (from << 6) | T | ((pt - KNIGHT) << 12));
}
inline bool is_ok(Move m) {