Indeed, that's the eval you would normally use, and says +3.25 when you are in KBK.silentshark wrote: ↑Sat Feb 08, 2020 9:26 am@hgm, when you write 'naive eval' I assume you mean the material + positional eval, and that's what gets adjusted?
Note that you can cut off some search work in end-games that in general are draws by reducing the search depth at the point where you enter them to a value that would be enough to see any tactics that would provide a winning exit from that end-game. E.g. KBN-KN in general is a draw, but you cannot declare it draw immediately at the point where you enter it (as you could with KBK), as white might be able to gain the Knight, e.g. through a skewer or discovered check. You must do some search to detect such tactics, but if you cannot find any material gain within a few ply, it would be a pure waste of time to deepen to 10 or 20 ply.
Another trick that can be helpful is to recognize inability to involve the King in end-games where this is essential. E.g. when you only have a single piece beside the King, as in KQKP (or KQKPPP). To this end you can keep a 50-move-like counter that resets on captures and King moves. And if its value gets too high (say 10 or 12) you can assume a draw, and apply a large discount factor.