benryan03 / Baseball-Simulator

A command-line baseball simulator in Python. Choose two MLB teams from any year with historically accurate rosters, and watch them go head to head! Players unique stats are taken into account during each pitcher-batter matchup.
31 stars 11 forks source link

Question #3

Open Denwen12 opened 4 years ago

Denwen12 commented 4 years ago

Anyway to manually enter pitcher and hitters if possible? Or load player stats from CsV. Cause id like to run it with certain players, because i am trying to run the program but teams traded players so id like to use my own inputs for the teams by copying the stats from the website @benryan03

Denwen12 commented 4 years ago

possibly still working on this

benryan03 commented 4 years ago

Thanks for the idea, I'll try to add this when I get time

Denwen12 commented 4 years ago

If you have time soon id like to try it out tommrow, what i want to do is create an away csv and home csv for players and insert from the website tables so i can use certian players, thanks

Denwen12 commented 4 years ago

i like your program by the way

Denwen12 commented 4 years ago

What i did was actually i made my own website server and copied the html for the websites and just edited the html code and i pulled stats from my own server

Denwen12 commented 4 years ago

I see you updated it and now it runs by it self picking Boston and yankees?

benryan03 commented 4 years ago

Oops, that was a mistake. Just fixed that.

Denwen12 commented 4 years ago

before i saw you fixed a bug where it wasnt showing stats at the end of run in box scores...Is that fixed now

benryan03 commented 4 years ago

Yes that should be fixed now

Denwen12 commented 4 years ago

What i did was actually i made my own website server and copied the html for the websites and just edited the html code and i pulled stats from my own server

Denwen12 commented 4 years ago

Im not very good with python coding but could you help me with building something So im going to simulate the same game 10 times and save each csv to a folder id like a program to open each csv and print and save a csv with the avg of each stat like the same csv it prints?

benryan03 commented 4 years ago

What exactly are you trying to do? I didn't really design it to be accurate enough to use for fantasy baseball or such. The only stats it uses to compare players are batting average and ERA. If you're using it for something like that, you might want to use something more sophisticated like Out of the Park Baseball.

Denwen12 commented 4 years ago

Ill look into that do you have a link? But yes im looking for new ways to play Fantasy and an edge :)

benryan03 commented 4 years ago

https://www.ootpdevelopments.com/out-of-the-park-baseball-home/