Unnecessary, computer takes a while. My suggestion is to check for continuous indestructible effective blockades that range from one side of the board to the other. This solves the problems.
For everything else we have we have the simple material check.
I saw in this discussion on how to get computers to recognize dead draw positions
someone propose having the computer use brute force to search for helpmates with the idea that if the position is truly a dead draw then no matter how many move sequence possibilities a computer searches, it will not be able to find any resulting in checkmate, but if the position is not a dead draw then if the computer checks enough random sequences of moves then it should be almost guaranteed to find a helpmate sequence.
I notice that the material counts, in which the game is over on this site seem to be ones, in which in regular chess there can be no 2 move checkmate combinations. For instance KNvsKB cannot have any 2 move forced mate combinations in regular chess, and so the game ends if it reaches such a position, but KNNvsKB can have 2 move forced mate combinations as when the king can't move but is not in check, the bishop can still move.
Based on this I was thinking that an alternative to having the computer check for sufficient material would be to have the computer first check whether one player can checkmate on the next move, and then, if there is no mate on the next move, use brute force to check whether there are sequences of moves that can result in 2 move forced checkmate combinations. If after looking through a large search tree the computer cannot find any 2 move forced checkmate combinations then, the computer would declare the game over and give the same number of points to the remaining players as it would for insufficient material. If the computer finds sequences of moves that would result in 2 move forced checkmate combinations then it would allow the game to continue.
I think this could be a good way to get the computer to detect positions, in which no player can force a mate in more than 1 move without having to individually program each situation into the computer.