There would be so many different variables to program w/ the different combinations of traps, soldiers and numbers.
Not that it'd be out of the question, impossible or even too long/complicated, but game companies seem to have this thing where they only seem to work on one issue at once, and I'd much rather them workin' on serious fundamental issues than a small aesthetic grace.