This is a programmer choice but normally is exactly as you say. In Satana, for sample, I have only one kind of evaluation function that evaluates statically from the point of view of the actual color. That means that i examine my pawn structure and not the one of the opponent. In this situation, i need to call the evaluate function in the last two plyes, to get a decent values:Luis Babboni wrote:Grazie Stefano!
If I´m right, the better way is to just evaluate the position after the last ply "simulated", I´m right?
That is in just 3 ply deep analyze:
1-e4 e5
2-Cf3
the engine at whites just evaluate the board after Cf3, but not after e4 nor after e4 e5.
Is like this?
1. e4, e5 (evaluate for black)
2. Cf3 (evaluate for white)
This is not very efficient but I will change it in the future. Normally you evaluate position at the end of quiescence search (i suppose... because i don't have quiescence search).