Lemme give it a try.
4 spots for the first Bishop (light sq's)
4 for the second Bishop (dark sq's)
6 spots for the Queen.
5 spots for the first Knight
4 spots for the second Knight
Since these N's are not distinct, we divide by 2
R/K/R occupy the remaining three squares in that order, so we leave 'em out of the probabilities.
(4*4*4*6*5) / 2 = 960
Is this mathematically correct?
your implementation is quite different and it has naturality in it.
We must be careful though if we give too much artificial intelligence to the machines they will rebel lol
Some of them are already revolting.