Skip to content

Commit

Permalink
display scaled eval with the uci eval command
Browse files Browse the repository at this point in the history
Bench: 6419722
  • Loading branch information
PGG106 committed Jan 22, 2024
1 parent 0e1f835 commit a1e9545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/uci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "movegen.h"
#include <iostream>
#include "tune.h"
#include "eval.h"

// convert a move to coordinate notation to internal notation
int ParseMove(const std::string& move_string, S_Board* pos) {
Expand Down Expand Up @@ -367,9 +368,8 @@ void UciLoop(char** argv) {
}
// print position eval
bool stm = td->pos.side == WHITE;
printf(
"the eval of this position according to the neural network is %d\n",
nnue.output(td->pos.AccumulatorTop(), stm));
std::cout << "Raw eval: " << nnue.output(td->pos.AccumulatorTop(), stm) << std::endl;
std::cout << "Scaled eval: " << EvalPosition(&td->pos) << std::endl;
}

else if (input == "bench") {
Expand Down

0 comments on commit a1e9545

Please sign in to comment.