# Why does Stockfish evaluate this position as equal?

After solving the puzzle while I was analyzing this endgame, I was just surprised to see stockfish evaluates this position as equal.

After Ke4, Ke6 (Opposition); Kf4, and f5 -- I can't find out any idea for white to stop black from queening (assuming that black didn't blunder).

Do I miss some tactics here?

• Stockfish gives me -25.2. The tablebase in the Lichess app says it's a win for black. Jul 6, 2021 at 4:35
• Yeah, it should give. Don't know why it's acting weirdly :( Jul 6, 2021 at 6:20
• Not sure whats going on there, but running that position on lichess analysis with depth 53 gives -60, so it surely is a win for black. Also it suggests me Kd5 instead of Ke4. lichess.org/analysis/8/5p2/5k2/8/3K2p1/6P1/8/8_w_-_-_0_1
– Isac
Jul 6, 2021 at 9:38

## 1 Answer

Since this position has less than 6 pieces, the full checkmating line can be produced with the Shredder's online 6 piece DTM tablespace. Here is the full checkmating line that I obtained by playing through it.

``````[FEN "8/5p2/5k2/8/3K2p1/6P1/8/8 w - - 0 1"]

1. Kd5 Kf5 2. Kd4 Ke6 3. Ke4 f5+ 4. Kf4 Kf6 5. Ke3 Ke5 6. Kd3 f4 7. Ke2 f3+ 8. Ke1 f2+ 9. Kxf2 Kd4 10. Ke2 Ke4 11. Kf2 Kd3 12. Kf1 Ke3 13. Kg2 Ke2 14. Kg1 Kf3 15. Kh2 Kf2 16. Kh1 Kxg3 17. Kg1 Kh3 18. Kf2 Kh2 19. Ke2 g3 20. Kd2 g2 21. Kd3 g1=Q 22. Kc4 Qe1 23. Kc5 Kg3 24. Kb5 Qc3 25. Kb6 Kf4 26. Ka6 Qb3 27. Ka5 Ke4 28. Ka6 Kd5 29. Ka5 Kc5 30. Ka6 Qb6#
``````

One of Black's tactics that you missed is the move 3... f5+. According to the tablebase this is the only winning move for Black. As such, if you miss it you miss the entire win. Another factor is that Black's f pawn causes is able to force the White king away from their pawn. Blacks king is then able to triangulate with their extra space and squeeze White out. White cannot take the Black pawn or else it is simply a faster loss.

Although, I will note, Shredders seems to blip out on move four and mislabels Kf5 as Kf4. This must be some unknown bug.