mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-29 01:35:42 +00:00
Use streams for AI debug dump messages (#7532)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <chrono>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
@@ -356,9 +357,9 @@ auto ShardokAIClient::StandardChooseCommandIndex(
|
||||
|
||||
// Write the flatbuffer game state to file using SaveTo method
|
||||
if (guessedState.SaveTo(statePath)) {
|
||||
printf("Game state dumped to: %s\n", statePath.c_str());
|
||||
std::cout << "Game state dumped to: " << statePath << '\n';
|
||||
} else {
|
||||
printf("Failed to dump game state to: %s\n", statePath.c_str());
|
||||
std::cout << "Failed to dump game state to: " << statePath << '\n';
|
||||
}
|
||||
#endif // ENABLE_MCTS_DEBUG_DUMP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user