added pretty printing | bench 6238369

This commit is contained in:
rektdie committed 2025-10-07 01:48:02 +02:00
1 parent 5c6d75e9ef
commit 670907dd8c
3 files changed
+1052 -4

No files matched your search

+15 -2
View File
@@ -6,6 +6,7 @@
#include <algorithm>
#include "stopwatch.h"
#include "tunables.h"
#include "termcolor.hpp"
#include "tt.h"
#include "../external/multi_array.h"
@@ -141,9 +142,21 @@ public:
length[ply] = length[ply + 1];
}
void Print(int n) {
void Print(int n, bool isEven = false) {
for (int i = 0; i < length[n]; i++) {
table[n][i].PrintMove();
if (i == 0 && !UCIEnabled) {
std::cout << termcolor::bright_cyan;
table[n][i].PrintMove();
std::cout << termcolor::reset;
if (isEven) {
std::cout << termcolor::color<247>;
} else {
std::cout << termcolor::color<251>;
}
} else {
table[n][i].PrintMove();
}
std::cout << ' ';
}
}