OKay, here is a link to a sample game:
sample game.
It's ugly, and the batting stats are not yet displayed. I know that there are bugs, as well. I believe that sometimes, singles cause runners on occupied bases to sometimes disappear. If you would like to help me test and figure out exactly what is going on when this happens, it would be much appreciated.
Runners never attempt to steal (yet) - I have to add this logic.
Pitchers are replaced when they tire, or when they get into a jam, but the "jam" logic is not yet right. I also think that pitchers may not be tiring quickly enough - I'm seeing a lot of 8 and 9 inning games from starts who are average or so at endurance. Really, they should typically last six innings - could be less, could be more. Sure, they CAN pitch a whole game, but this should be an exception for a guy with a 75 or so endurance rating. On the other hand, relievers often get pulled far too often.
Pinch hitting does not happen yet - I need to add this logic. Nor does defensive subbing or pinch running.
Still, there is a lot of complex logic going on here. If you like baseball, I'd love your feedback.