The idea is to generate automatically something like this for example for the endgame KBPK:
If (weak king in front of pawn)
draw;
if (distance between king and pawn < distance from pawn to 8th rank and ...)
draw;
...
To generate this I think one can iterate trough all the possible positions having tablebase access and find which "Ifs" are true always; first find one-condition if's that are always true; then find two condition if's that are always true; and so on until all the cases or most of them are covered. Of course the if's that cover most positions will be first in the resulting algorithm.
One can also use if's like (if distance between kings < 5), when the number 5 is generated and validated with a for 1..7.
Will be nice, and many people will use them in their engines those resulting algorithms
