I am doing endgame training with LucasChess (LC), but the problem is not really related to LC, but to chess engines in general.
I have this problem: See picture. When I move Kh6 in this position, the engine in LC moves Ke8. Probably this is the move with which white needs the most moves until mate.
But it is also the move which makes things easy for white. It would be harder for white if black would move Kg8, trying to block the pawn until it is no longer possible and maybe provoking a stalemate. Instead of blocking, black flees in direction to the center.
I assume the engine sees that with fleeing to the center it is maybe a mate in 20 and without fleeing and trying to block it is maybe a mate in 16. So it makes the "optimal" move with which the distance to mate is the longest.
But this is not the best human like move. Because it makes it easier for white to queen its pawn. It clears all possibilities for white to make mistakes and in this way it takes away an important part of the training effect.
I have seen this behaviour in nearly all pawn endings, not only this one; and also in other endings.
All engines I've tried show this behaviour. (Komodo, Stockfish, Gull, Gaviota, Fruit)
So my question is: Do you know a free engine or some settings for an engine which plays endgames human-like, trying to block pawns as long as possible instead of fleeing with the king to the center?
Update: konsolas found an engine (Leela or Lc0) which treats the given position well and so at first I accepted his answer as the answer. In between I've tested Lc0 more and came to the conclusion that it is absolutely not usable for endgame training, because it plays most endings catastrophically. When accepting the answer, I couldn't even imagine any engine playing endgames so bad.
So I want to clarify my question: Do you know a free engine or some settings for an engine which, with movetime 1s or below, without needing a graphics card, plays endgames human-like, trying to block pawns as long as possible instead of fleeing with the king to the center?
Lc0 with current nets or dkappe's distilled nets do not qualify, because these play most endgames horribly and absolutely non-human-like on a PC without graphics card. And from all what I've read a graphics card even won't help for its endgame play.
Update 2: I'd like to clarify that it is not only the position above, but a lot of others, too. Engines play the move which makes distance to mate biggest, assuming perfect play of the opponent. Example 8/8/8/6K1/8/8/3Q2kp/8 b - - 4 9, see second picture. Engines play Kf3, which makes it very easy for W. What B should play is Kg1, and now it's much harder for W to win. W then needs to know or find that he has to allow B to queen.