mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 17:19:36 +00:00
Be sure to read options before to call trace_evaluate()
Otherwise in case we change an option with setoption and then ask for "eval" command the evaluation is not updated. Spotted by Justin Blanchard. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
1f73a9ed63
commit
0c775fae4b
1 changed files with 3 additions and 0 deletions
|
@ -97,7 +97,10 @@ bool execute_uci_command(const string& cmd) {
|
|||
pos.print();
|
||||
|
||||
else if (token == "eval")
|
||||
{
|
||||
read_evaluation_uci_options(pos.side_to_move());
|
||||
cout << trace_evaluate(pos) << endl;
|
||||
}
|
||||
|
||||
else if (token == "key")
|
||||
cout << "key: " << hex << pos.get_key()
|
||||
|
|
Loading…
Add table
Reference in a new issue