uci: 解决输入 d 后未按预期打印局面数据而是打印内存地址的问题

This commit is contained in:
Calcitem 2020-10-25 01:21:54 +08:00
parent 82c0539ec8
commit 0e19426369
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ void UCI::loop(int argc, char *argv[])
// Do not use these commands during a search!
else if (token == "flip") pos->flip();
else if (token == "bench") bench(pos, is);
else if (token == "d") sync_cout << &pos << sync_endl;
else if (token == "d") sync_cout << *pos << sync_endl;
else if (token == "eval") sync_cout << Eval::trace(*pos) << sync_endl;
else if (token == "compiler") sync_cout << compiler_info() << sync_endl;
else