friend std::ostream& operator<<(std::ostream&, const Position&);
- Position(const Position&); // Disable the default copy constructor
-
public:
static void init();
- Position() {} // To define the global object RootPos
+ Position() = default; // To define the global object RootPos
+ Position(const Position&) = delete;
Position(const Position& pos, Thread* th) { *this = pos; thisThread = th; }
Position(const std::string& f, bool c960, Thread* th) { set(f, c960, th); }
Position& operator=(const Position&); // To assign RootPos from UCI
uint64_t nodes_searched() const;
void set_nodes_searched(uint64_t n);
bool is_draw() const;
+ int rule50_count() const;
Score psq_score() const;
Value non_pawn_material(Color c) const;
return gamePly;
}
+inline int Position::rule50_count() const {
+ return st->rule50;
+}
+
inline uint64_t Position::nodes_searched() const {
return nodes;
}