DEV Community


Discussion on: JavaScript Baseball

denvercoder profile image
Tim Myers Author

One of the things I thought of doing is have a "Team" array with Players that all have different ratings. So like in REAL baseball a batter with a .500 average is going to get more hits than a batter with a .300 average. I thought about factoring in that percentage. Then you could let them pick their own team by having a maximum number of "points". Maybe you start with 20 points. A batter with a .500 average is 10 points so that would be almost all of your points so you would have to fill your roster with .125 average batters. So there would be some skill in optimizing your roster of players.