else if (token == "setoption") setoption(is);
else if (token == "flip") pos.flip();
else if (token == "bench") benchmark(pos, is);
- else if (token == "d") sync_cout << pos.pretty() << sync_endl;
+ else if (token == "d") sync_cout << pos << sync_endl;
else if (token == "isready") sync_cout << "readyok" << sync_endl;
else if (token == "eval") sync_cout << Eval::trace(pos) << sync_endl;
else
std::string UCI::format_square(Square s) {
- char ch[] = { 'a' + file_of(s), '1' + rank_of(s), 0 }; // Zero-terminating
+ char ch[] = { char('a' + file_of(s)),
+ char('1' + rank_of(s)), 0 }; // Zero-terminating
return ch;
}