From 0872c0695ee5e2a153d83188d5093ce3b829cd4f Mon Sep 17 00:00:00 2001 From: SzilBalazs Date: Tue, 15 Aug 2023 12:02:19 +0200 Subject: [PATCH] Disable pretty output by default and improve readme Bench: 2134743 --- README.md | 13 +++++++++++++ src/main.cpp | 2 +- src/search/terminal_report.h | 2 +- src/search/time_manager.h | 1 - src/uci/uci.h | 4 ++-- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4114918..99c7425 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,19 @@ WhiteCore in itself is a command line program, and requires a UCI compatible Chess GUI (like Cute Chess or Arena) for the best user experience. +## Custom UCI Commands + + | Command | Description | + |--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| + | `pretty` | Enables the pretty output option for the console. This improves the readability of the search reports by adding indentation and colors. Can be disabled by sending the \"uci\" command. | + | `display` | Displays the current board status. | + | `eval` | Evaluates and displays the current board state using nnue. | + | `gen` | Generates self-play games using specific parameters. | + | `split` | Splits input data into two output datasets in a particular proportion. | + | `quantize` | Quantizes the neural network weights for performance reasons. | + | `train` | Trains a neural network with specific parameters. | + | `perft` | Used for performance testing and validation of the move generator. | + ## Files This project contains the following files: diff --git a/src/main.cpp b/src/main.cpp index 39e7677..7f2c4f1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -35,7 +35,7 @@ namespace chess { namespace search { Depth lmr_reductions[200][MAX_PLY + 1]; int64_t TimeManager::MOVE_OVERHEAD = 30; -} +} // namespace search void init_all() { chess::init_masks(); diff --git a/src/search/terminal_report.h b/src/search/terminal_report.h index 4872915..eeaac8a 100644 --- a/src/search/terminal_report.h +++ b/src/search/terminal_report.h @@ -27,7 +27,7 @@ namespace search::report { const std::string ASCII_RESET_COLOR = "\u001b[0m"; - bool pretty_output = true; + bool pretty_output = false; bool show_wdl = false; /** diff --git a/src/search/time_manager.h b/src/search/time_manager.h index badb92a..0e16e6a 100644 --- a/src/search/time_manager.h +++ b/src/search/time_manager.h @@ -22,7 +22,6 @@ namespace search { class TimeManager { public: - static int64_t MOVE_OVERHEAD; /** diff --git a/src/uci/uci.h b/src/uci/uci.h index 57a309a..ec9f5d8 100644 --- a/src/uci/uci.h +++ b/src/uci/uci.h @@ -174,8 +174,8 @@ namespace uci { 1, 128); options.emplace_back( - "Move_Overhead", "30", "spin", [&]() { - search::TimeManager::MOVE_OVERHEAD = get_option("Move_Overhead"); + "MoveOverhead", "30", "spin", [&]() { + search::TimeManager::MOVE_OVERHEAD = get_option("MoveOverhead"); }, 0, 1000);