[d]
My engine played Kg5 and was promptly mated. It's a #7, so 14 ply should find this threat. I was trying to think of something that would help in general game play and avoid this threat as well.
I ended up using the king safety information from the evaluation, and returning a kingInDanger[2] from eval. Then, if kingInDanger[], I generate checking moves much further in q-search than I normally would. The threshold for setting kingInDanger changes the personality a fair bit
This seems to avoid search explosion, and helped quite a bit in this position, and in finding threats in general. I'm sure that other people do similar things with evaluation and search extensions/reductions. I haven't seen it in the strong open source engines, but they still manage to beat up on me anyway