What I am saying is~
Does it calculate each play by play, considering skills, matchups probabilities and all that...or does it just decide one outcome and makeup each plays.
I *think* your biggest mistake is assuming that the outcome cannot be decided first and not incorporate all match-ups. All of that is most-likely worked out in a millisecond. It's not like it's a huge amount of data, the script would factor in all things - match-ups/possibilities/tactics/HCA... and BAM! Produce the outcome, and how we got to that point. It would be happening so fast that it's almost irrelevant which comes first, and from our perspective: it is irrelevant.
It's just data. But I'd assume that it's far easier to start with a result, and work backwards from that point... factoring in all permutations and combinations.
http://with-malice.com/ - The half-crazed ramblings of a Lakers fanatic in Japan