1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

Everywhere: Replace a bundle of dbg with dbgln.

These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
This commit is contained in:
asynts 2021-01-17 18:17:00 +01:00 committed by Andreas Kling
parent 7d783d8b84
commit 3f23a58fa1
9 changed files with 97 additions and 70 deletions

View file

@ -26,6 +26,7 @@
#include "ChessEngine.h"
#include "MCTSTree.h"
#include <AK/Debug.h>
#include <LibCore/ElapsedTimer.h>
using namespace Chess::UCI;
@ -68,9 +69,9 @@ void ChessEngine::handle_go(const GoCommand& command)
mcts.do_round();
++rounds;
}
dbg() << "MCTS finished " << rounds << " rounds.";
dbg() << "MCTS evaluation " << mcts.expected_value();
dbgln("MCTS finished {} rounds.", rounds);
dbgln("MCTS evaluation {}", mcts.expected_value());
auto best_move = mcts.best_move();
dbg() << "MCTS best move " << best_move.to_long_algebraic();
dbgln("MCTS best move {}", best_move.to_long_algebraic());
send_command(BestMoveCommand(best_move));
}