diff options
author | asynts <asynts@gmail.com> | 2021-01-17 18:17:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-22 22:14:30 +0100 |
commit | 3f23a58fa1a0de922e36d82adccfccfb78b4049f (patch) | |
tree | 04fecee8357ad30cf6bf03ac5cbc3fdf061bbe83 /Userland/Services/ChessEngine | |
parent | 7d783d8b84f8c55fd30af867437734a732fcfc17 (diff) | |
download | serenity-3f23a58fa1a0de922e36d82adccfccfb78b4049f.zip |
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.
Diffstat (limited to 'Userland/Services/ChessEngine')
-rw-r--r-- | Userland/Services/ChessEngine/ChessEngine.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Userland/Services/ChessEngine/ChessEngine.cpp b/Userland/Services/ChessEngine/ChessEngine.cpp index 16394d443c..e45965d771 100644 --- a/Userland/Services/ChessEngine/ChessEngine.cpp +++ b/Userland/Services/ChessEngine/ChessEngine.cpp @@ -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)); } |