Stockfish: uci parameters stockfish

Created on 14 Jan 2020  路  1Comment  路  Source: official-stockfish/Stockfish

Hello,

Changing uci parameters with:

setoption name value

does not appear to have any effect. I do not receive any errors, but upon typing uci I still get all the default parameters.

In particular I am trying with

setoption name threads value 6

but I also tried different values and parameters.

Most helpful comment

As long as you do not receive a No such option: ... error message when typing a setoption name value command, you can assume that Stockfish has received and recorded the change.

It is true that we don't output the current values of options after the uci command, but that is because it is not in the UCI protocol to do so.

You can change line 105 of ucioption.cpp by adding this line before the break :

   os << " current " << o.currentValue;

This will make a custom (not UCI compliant) version which allows you to check that the internal values of options change.

>All comments

As long as you do not receive a No such option: ... error message when typing a setoption name value command, you can assume that Stockfish has received and recorded the change.

It is true that we don't output the current values of options after the uci command, but that is because it is not in the UCI protocol to do so.

You can change line 105 of ucioption.cpp by adding this line before the break :

   os << " current " << o.currentValue;

This will make a custom (not UCI compliant) version which allows you to check that the internal values of options change.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anonymous7002 picture anonymous7002  路  3Comments

ghost picture ghost  路  5Comments

d3vv picture d3vv  路  5Comments

GBeauregard picture GBeauregard  路  7Comments

Silver-Fang picture Silver-Fang  路  7Comments