Logic behind creating a basketball simulator with Python
I imagine you will want a to rig up a modifier to help compare teams from different eras. Defensive rules have changed over the ages and its had a great effect on field goal percentages, as have things like pace of play.
I am learning Python 3.x together with Flask. I'm also a Basketball fan, so I thought I'd be a good idea to get in the water and try to do a game simulator, perhaps only between two teams to begin with - and learn more Python along the way.
My biggest question for start is what should the logic behind the simulator be? Let's say I want to sim two historic teams - Lakers00 vs Bulls 98. Stats of the players are available online.
I want it to be "realistic," so perhaps getting into percentages of each player? If Jordan shot let's say 50% for the season - should that be programmed into each 'player' and then tell what's the chance that the % is higher or lower than that in each simulation? Should I use .json to store the data?
Or is there a completely different approach I should take?
Once the code is in, I would ideally try to turn that into a website with Flask. What database would you recommend to use?
Thank you