In my last question, I asked why engines sometimes force a draw when they can still win. Now, I'm asking about the opposite situation:

[FEN "5K2/5n2/8/3n2k1/8/8/8/8 w - - 0 1"]

1. Ke8? (1. Kxf7) 1... Nd6+ 2. Kf8 Kh6 3. Kg8 Ne7+ 4. Kh8?? Nf7#

It's completely impossible for White to win here, but Black winning is still possible, if White blunders into the corner or runs out of time. Isn't the obvious move then for White to play Kxf7, to secure the draw immediately? Why does Stockfish instead suggest Ke8, which keeps the game going and leaves open the possibility of a loss?

  • 2
    You are trying to project human qualities onto a computer; so far as Stockfish's evaluation is concerned, especially if it has an endgame tablebase, both Ke8 and Kxf7 are draws, so why choose one over the other? My Stockfish (without a tablebase) correctly evaluates any legal move by white as equivalently strong - because strictly they are.
    – Ian Bush
    Commented Jul 2, 2021 at 7:38
  • For Stockfish, there is no possibility of a loss which it is leaving open. The question mark doesn't belong on the first move in the sequence that you give, but rather on a subsequent move which Stockfish simply wouldn't do. Commented Jul 2, 2021 at 12:07

1 Answer 1


Chess engines just don't work that way. They don't have a "risk" or a "just in case" module. They just try to maximize their eval function. (They value stuff like king safety, but that's something different).

Typical case: on a given position white has an easy to calculate simplification that takes to a trivially winning K+P vs K endgame. Say this is a mate in 30. On the other hand, in the same position, white has a very hard to find (for humans) mate in 15. No human would risk to miscalculate the brilliant mate in 15 when you can get into a prosaic won endgame, but to the engine mate in 15 is just better than mate in 30, so there it'll go.

Another reason for engines not to behave these ways; it just doesn't add Elo points to their strength.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.