Hmm, i think Tony's psq-table for the lonesome king is quite fine_if_ it also interacts with minimizing the distance of both kings.
If i have a look to your psq-table, there is a "huge" difference between c6 (13) and e8 (22), while on the way to the mate at a8, e8 might be closer than c6 - which might lead to oscillations and probably inefficient search.
If i remember correctly the rules from my old chess books, there is a kind of initial position, where a recipe might be applied to force the lonesome king into the right corner:
[diag]5k2/5N2/5K2/5B2/8/8/8/8 w - -
[/diag]
5k2/5N2/5K2/5B2/8/8/8/8 w - -
The white king resides on the 6.th rank, going from f6 to c6 and b6.
White knight does the "W" from f7,e5,d7,c5,b7 and the white bishop makes locking and tempo moves.
Using that recipe the lonesome king has some squares of the bishops square color - where it seems he could escape from the edge, but the bishop can cut off the escape square(s):
[diag]8/3N3B/2k1K3/8/8/8/8/8 w - -
[/diag]
8/3N3B/2k1K3/8/8/8/8/8 w - -
Later the black king comes temporary back to e8 where the search already "smells" the mate.
I think a psq-table for the knight might also helpfull, considering those mirrored W-squares...
My psq-table proposal for the lonesome king
with bishop on light colored squares
(bishop & 0x55aa55aa55aa55aa):
- Code: Select all
a8
0 0 1 2 3 4 6 7
0 2 2 5 6 7 7 6
1 2 2 6 7 7 7 4
2 5 6 8 8 7 6 3
3 6 7 8 8 6 5 2
4 7 7 7 6 2 2 1
6 7 7 6 5 2 2 0
7 6 4 3 2 1 0 0
;-)