Research and references: https://www.notion.so/Life-in-a-Browser-9060924b7cf9458287ee52f7a78d932a
-
Use terra.js to create "critters" and have them interact with a virtual environment. https://rileyjshaw.com/terra/
-
Keep track of their actions in a Mongo DB to create a database for analysis (Keep track of population of critters, plants, how much they eat, etc).
-
Graph the info about the critters onto a D3 interactive graph.
-
Create a flask app that auto update critter statistics "live" in real time of the simulation. Show the Critters in the terra.js viewport "living" in real time as the stats about them update in the same page.
-
Include interactive buttons and sliders for changing simulation parameters as well as graphical viewpoints.
- Give creature "id" method that gives each creature created a unique id
- Write creature method that sends coordinates, x, y, id, and actions of each creature per iteration to Data Base for recording.
Run summary statistics of creature types, counts, and locations per iteration using python to manipulate the data from the mongo database
Visualize in d3 with some interactive views.