Skip to content

Commit

Permalink
Disable pretty output by default and improve readme
Browse files Browse the repository at this point in the history
Bench: 2134743
  • Loading branch information
SzilBalazs committed Aug 15, 2023
1 parent ed01336 commit 0872c06
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ WhiteCore in itself is a command line program, and requires a UCI compatible
Chess GUI (like <a href="https://github.com/cutechess/cutechess">Cute Chess</a>
or <a href="http://www.playwitharena.de/">Arena</a>) 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:
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/search/terminal_report.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
1 change: 0 additions & 1 deletion src/search/time_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
namespace search {
class TimeManager {
public:

static int64_t MOVE_OVERHEAD;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/uci/uci.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ namespace uci {
1, 128);

options.emplace_back(
"Move_Overhead", "30", "spin", [&]() {
search::TimeManager::MOVE_OVERHEAD = get_option<int>("Move_Overhead");
"MoveOverhead", "30", "spin", [&]() {
search::TimeManager::MOVE_OVERHEAD = get_option<int>("MoveOverhead");
},
0, 1000);

Expand Down

0 comments on commit 0872c06

Please sign in to comment.