Logic behind creating a basketball simulator with Python
I don't know JSON, but I'd start with keeping it simple, if you're still working on this.
1: Players should have at least the following fields:
         Breakdown of possession usage (TO, 2 Pt shot, 3 pt shot)
         2 pt shooting percentage, 3 pt shooting percentage
2: I'd probably start by including something like usage percentage
The simplest way to do it would be have a player class with those attributes. If you took the advice of #2 you could use a function to pull out which player used the possession, and what they did with it (2 pt shot, 3 pt shot, turnover, and whether the shot was successful). Defense, rebounds, fouls might be more for later versions of the game, but if you start with that you'll at least have something that resembles basketball. I think NBA games are roughly 100 possessions.
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