- explicit MoveList(const Position& pos) : last(generate<T>(pos, moveList)) {}
- const ExtMove* begin() const { return moveList; }
- const ExtMove* end() const { return last; }
+ explicit MoveList(const Position& pos) : cur(moveList), last(generate<T>(pos, moveList)) { last->move = MOVE_NONE; }
+ void operator++() { ++cur; }
+ Move operator*() const { return cur->move; }