analyze: 显示轮到谁行棋

This commit is contained in:
Calcitem 2020-09-05 10:10:19 +08:00
parent 5c34a678de
commit 7b1c3c5b14
1 changed files with 9 additions and 1 deletions

View File

@ -140,7 +140,9 @@ void AiThread::analyze(Color c)
string strUs = (c == BLACK ? "黑方" : "白方");
string strThem = (c == BLACK ? "白方" : "黑方");
cout << *ai.position() << endl;
Position *pos = ai.position();
cout << *pos << endl;
if (v == VALUE_UNIQUE) {
cout << "唯一着法" << endl << endl << endl;
@ -201,6 +203,12 @@ void AiThread::analyze(Color c)
cout << strThem << "将在 " << d << " 步后领先 " << -p << "" << endl;
}
if (pos->side_to_move() == BLACK) {
cout << "轮到黑方行棋";
} else {
cout << "轮到白方行棋";
}
cout << endl << endl;
}