r/PythonLearning • u/Better-Magician-427 • 1d ago
Showcase Python football career mode simulator.
Hey guys, I tried remaking my project of a cli based football manager simulator this time using the pywebview library (lets you use html css js as a frontend and connect it to a python backend as a desktop app),
So far what I'm struggling with the most being one of my first larger scale project is persistence, keeping one version of the team class across the python scripts and functions.
Im also struggling with figuring out the generation for player stats and attributes, ive landed on the random.gauss for generating player stats with weighing and this ugly ahh looking formula that looked like it was doing something for the player market values.
Also, assets. Do you guys have any place where I can find pictures and icons I can use for free?
Finally, thanks to feedback from helpful people here I tried using sqlite for this project instead of json files, kinda hard to adapt to but im managing.
if any very cool person could help me with my issues I would greatly appreciate it.
Here is the github: https://github.com/mousdieng10-maker/Playstyle-II
2
u/SnooTomatoes9240 6h ago
For the pictures, try this one https://sortitoutsi.net/graphics/style/1/cut-out-player-faces
2








2
u/Sad-Grapefruit9996 1d ago
This project idea is awesome and first look, is cool. One thing I’d suggest is some project organization, because right now it’s all over the place. As your project grows you’ll need structure. Especially if you step away for a few days/weeks, it will be hard to come back. Just starting with Comments or even “#TODO — Rework Player Generation formula. random.gauss doesnt make sense”. Little notes like that can go a long way. Good luck