DEV Community

sm.lee
sm.lee

Posted on

How I used AI to refine my Baseball Simulation Logic

https://gist.github.com/lsm123-start/2130985ad8cd2321ac07c4f5b36b949f first
https://gist.github.com/lsm123-start/1ced190375c58d1eca9f4c10bd81ea28 second

Hi everyone!

I’ve just completed the second version of my Baseball Simulator. In this update, I focused on making the game more dynamic by allowing users to choose two teams to play against each other.

To do this, I had to separate the team data into different files. As a beginner, this refactoring process was quite challenging. Even with Gemini's help, structuring the files and making sure everything connected correctly wasn't easy. I went through a lot of trial and error, and it was a bit stressful at times!

But after all that effort, it finally works! It was a great lesson on why code structure and organization matter as a project grows. I’d love to hear your thoughts or any tips for a beginner developer like me.

Thanks for reading!

Top comments (0)