1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

Added debug code.

This commit is contained in:
Hisayori Noda 2019-06-22 00:39:21 +09:00
parent 57ead90f18
commit 641724e3a5

View file

@ -687,6 +687,13 @@ void MultiThinkGenSfen::thread_worker(size_t thread_id)
// 最終的な書き出しは、勝敗がついてから。
pos.sfen_pack(psv.sfen);
//{
// std::string before_fen = pos.fen();
// pos.set_from_packed_sfen(psv.sfen, &si, th);
// std::string after_fen = pos.fen();
// assert(before_fen == after_fen);
//}
// PV lineのleaf nodeでのroot colorから見たevaluate()の値を取得。
// search()の返し値をそのまま使うのとこうするのとの善悪は良くわからない。
psv.score = evaluate_leaf(pos, pv1);