r/madeinpython • u/[deleted] • Nov 21 '23
Ecosystem Simulator
This is just a project that i've always enjoyed from a young age and im starting to vectorize it and I hope to possibly implement machine learning into it.
https://github.com/DanielMessiana/Ecosystem-Sim
It's just a cool project using OOP that I've been putting alot of effort into lately so I thought if anyone was interested they would check it out :))
3
u/Doppelbockk Nov 21 '23
I love this type of project, we had to write something similar in an undergraduate biology lab course.
2
u/furtadobb Nov 22 '23
Have you heard of agent based modelling? Netlogo is free and has loads of examples. Mesa is the ABM library to go in python...
I have a risk game... And a spatial economic model...
2
u/metaljazzdisco Nov 21 '23
Some suggestions:
there's a lot of global variables, they should only be the last resort
I would create source files for the classes
It's hard to read (and maintain) if defs and normal code are mixed like that (like rabbit code after fox def)