Color side_to_move() const;
int startpos_ply_counter() const;
bool is_chess960() const;
- Thread& this_thread() const;
+ Thread* this_thread() const;
int64_t nodes_searched() const;
void set_nodes_searched(int64_t n);
template<bool SkipRepetition> bool is_draw() const;
return st->capturedType;
}
-inline Thread& Position::this_thread() const {
- return *thisThread;
+inline Thread* Position::this_thread() const {
+ return thisThread;
}
#endif // !defined(POSITION_H_INCLUDED)