I am trying to interact with stockfish via UCI to get a current evaluation of the board. When you do a simple
position startpos go depth 10
The board will helpfully return
...[previous depths] info depth 10 seldepth 11 multipv 1 score cp 29 nodes 1463 nps 731500 tbhits 0 time 2 pv e2e4 e7e5 g1f3 b8c6 f1b5 a7a6 b5c6 d7c6 e1g1 c8g4 d2d3 bestmove e2e4 ponder e7e5
From this I can see that the evaluation for the next move is cp29 and this is corroborated by a previous question. However, looking at another question, it seems like the initial question is technically wrong since the evaluation is for the position that will be resulted from the next best move, rather than the score for a current position. The second question also explains a way to get the technically correct evaluation for the current position.
My questions are
- What score is commonly outputted by UIs that interact with stockfish? Do other UIs also go back in history to get a score when given a position?
- Is it correct that the score I get is the score for the next move when I use the standard
- Is there anyway to get the current score without going back in game history and force stockfish to calculate scores for all those other positions as explained in the second SE question? This forces me to fake a move backwards in time if I am using a FEN and don't know the game history for instance which doesn't seem like the right thing to do, nor it should be necessary.