Back to articles
I built a baseball simulator in Python (with JSON-based teams)

I built a baseball simulator in Python (with JSON-based teams)

via Dev.to Beginnerssm.lee

engine https://gist.github.com/ccf99187f6f438d18dae7adeafd584ab.git main https://gist.github.com/b6b79da45e8d896212a5b3b4214919b9.git Teams https://gist.github.com/64f40cf6a132812f2e7522333e2ddd62.git teams https://gist.github.com/863bde9738786ce7073b04c5504416e3.git It's been just over two weeks since I started building my baseball simulation. I'll admit, the sheer difficulty of development has dampened my spirits at times. But I’m sticking to my '1% improvement' philosophy—challenging myself consistently, even if it's just a little bit each day. I’ve refactored the project structure as follows: Previous Structure: Team files Main (Execution) Team Stats + Load Team + Prepare Next Batter (Combined) New Refactored Structure: Team files Main (Execution) Team Stats (Separated) Load Team + Prepare Next Batter (Separated) The reason for this separation is to minimize potential errors and ensure scalability as I add more teams to the simulation. During this process, I faced numerous challeng

Continue reading on Dev.to Beginners

Opens in a new tab

Read Full Article
6 views

Related Articles