marekpiotradamczyk / bestiazwroclawia

7 stars 7 forks source link

Tapered eval #23

Closed mateusz2173 closed 4 months ago

mateusz2173 commented 4 months ago

Implement tapered eval (PeSTO eval) Each piece receives 2 type of scores depending of its position: middlegame score and endgame score.

Final score should be interpolated between middlegame and endgame scores using game phase.

final_score = (middlegame * phase + endgame * (N - phase)) / N where N is max phase (0 <= phase <= N)