0

How do I simulate a baseball game with multiple batter lineup?

I have been working on a baseball Simulator posted on this app and have been having trouble adding a chunk of code where for each simulated at bat it moves on to the next batter in the lineup https://code.sololearn.com/c9t97pv2WZH5/?ref=app

19th Dec 2020, 6:26 PM
Kevin
Kevin - avatar
1 ответ
0
I don’t actually know that much about baseball, but just looking at the beginning of the code, why do you import random twice and assign X twice? There’s no reason for it. this looks too badly broken to be fixed, and I recommend starting from scratch.
10th Feb 2021, 2:42 PM
Wilbur Jaywright
Wilbur Jaywright - avatar