Chess-Coding-Adventure icon indicating copy to clipboard operation
Chess-Coding-Adventure copied to clipboard

KingEnd is in the PieceSquareTable with values but...

Open robertkjr3d opened this issue 3 years ago • 2 comments

You have a kingmiddle and KingEnd... Also the Evaluation section choses when to call the Endgame. What I don't understand is when the AI ever 'evaluates' using the 'kingEnd' numbers. Is this part currently being ignored? I'm thinking the Evaluation section (Evaluation.cs), when it changes the 'EndgamePhaseWeight' also needs to use the (KingEnd) (PieceSquareTable.cs).

robertkjr3d avatar Apr 16 '22 12:04 robertkjr3d

You obviously got your code from here: https://www.adamberent.com/wp-content/uploads/2019/02/GuideToProgrammingChessEngine.pdf But missed the part with: if (endGamePhase) { score += KingTableEndGame[index]; }

robertkjr3d avatar Apr 25 '22 18:04 robertkjr3d

@robertkjr3d In his new video I believe he states that he left it out explicitly because it made the program perform worse for a mysterious reason.

k-tten avatar Jul 10 '23 06:07 k-tten