From 1184c884100cfdc707c8611464355cfbabf77092 Mon Sep 17 00:00:00 2001 From: aaaaaa aaaaaaa Date: Wed, 27 Dec 2017 23:02:13 +0100 Subject: [PATCH] print results as table --- tester/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tester/main.cpp b/tester/main.cpp index 8de7846..ced8dca 100644 --- a/tester/main.cpp +++ b/tester/main.cpp @@ -27,7 +27,14 @@ int main(int argc, char** argv) { } SelfTest(); - std::cout << *x << std::endl; x->unhook_all(); } + + std::cout << "+----------+-+-+-+-+-+-+-+" << std::endl << + '|' << std::setw(10) << "Name" << std::setw(1) << "|S|B|R|A|?|L|T|" << std::endl << + "+----------+-+-+-+-+-+-+-+" << std::endl; + for (auto&& x : engines) { + std::cout << *x << std::endl; + } + std::cout << "+----------+-+-+-+-+-+-+-+" << std::endl; } \ No newline at end of file