From e5bb2d1a5fe51524105935a1ad67bf22a2e6f004 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 3 Feb 2025 23:41:16 +0100 Subject: [PATCH] printing moves normally --- cpp/src/stickfosh.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/src/stickfosh.cpp b/cpp/src/stickfosh.cpp index e5efe09..acfbf51 100644 --- a/cpp/src/stickfosh.cpp +++ b/cpp/src/stickfosh.cpp @@ -55,11 +55,11 @@ int move_generation_test(Board& b, int depth, int max_depth) { int num_pos = 0; for (const Move& move : moves) { Board tmp_board = b.make_move(move); + // std::cout << ">" << move << std::endl; int n = move_generation_test(tmp_board, depth - 1, max_depth); + // std::cout << "<" << move << std::endl; if (depth == max_depth) - res << Coords::from_index(move.source_square) - << Coords::from_index(move.target_square) << ": " << n - << std::endl; + res << move << ": " << n << std::endl; num_pos += n; } return num_pos;