void AI::debug(color_ostream & out, const std::string & str) { std::string ts = timestamp(); if (DEBUG) { write_df(out, "AI: " + ts + " " + str, "\n", "\n", DF2CONSOLE); } write_df(logger, ts + " " + str, "\n "); }
void AI::debug(color_ostream & out, const std::string & str) { std::string ts = timestamp(); if (config.lockstep) { write_lockstep("AI: " + ts + " " + str); } if (config.write_console) { write_df(out, "AI: " + ts + " " + str, "\n", "\n", [](const std::string & in) -> std::string { return DF2CONSOLE(in); }); } if (config.write_log) { write_df(logger, ts + " " + str, "\n "); } }