mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Don't copy Position in pretty_pv()
Also let do_setup_move() don't reuse same StateInfo so that we can remove the check about different StateInfo objects before memcpy() in do_move. Functional change due to harmless additionals do_move() / undo_move() steps. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -129,7 +129,7 @@ namespace {
|
||||
|
||||
void extract_pv_from_tt(Position& pos);
|
||||
void insert_pv_in_tt(Position& pos);
|
||||
std::string pv_info_to_uci(const Position& pos, Value alpha, Value beta, int pvLine = 0);
|
||||
std::string pv_info_to_uci(Position& pos, Value alpha, Value beta, int pvLine = 0);
|
||||
|
||||
int64_t nodes;
|
||||
Value pv_score;
|
||||
@@ -2633,7 +2633,7 @@ split_point_start: // At split points actual search starts from here
|
||||
// formatted according to UCI specification and eventually writes the info
|
||||
// to a log file. It is called at each iteration or after a new pv is found.
|
||||
|
||||
std::string RootMove::pv_info_to_uci(const Position& pos, Value alpha, Value beta, int pvLine) {
|
||||
std::string RootMove::pv_info_to_uci(Position& pos, Value alpha, Value beta, int pvLine) {
|
||||
|
||||
std::stringstream s, l;
|
||||
Move* m = pv;
|
||||
|
||||
Reference in New Issue
Block a user