ReadMe Update: Many links in the readme were outdated due to change in folder structure. I have fixed it to work with current folders
ReadMe Update: I have restructured the readme to make it similar to the readme of other examples. I have also added a link for additional information
General readability: I have made general improvements by making the code more easy to read for newcomers
Merge Agent and Model: I have deleted boid.py and merged it with model.py to follow best practices
Renamed velocity: I have renamed the attribute "velocity" to "direction". Velocity is misleading since there is a speed attribute also and velocity is used to signify direction only in this case
Model Visualization: I made it so that if there are 0 or 1 neighbours then the agent is red, else green. This help in better visual
Sliders: I made it so that the user can now change the population and other parameters interactively
NOTE: I also tried to work on #86 for adding better visualization but I was facing some issues.
As for colour I made a simple colouring scheme such that if there are less than 2 neighbours the agent is red, else green (Implemented)
When I tried to make changes to the JavaScript file to add arrowHeads my changes were not being reflected. It did reflect initially, but later on it just did not reflect even the smallest change. I even deleted the entire JS file but the code still worked (it should not work without the JS file). It seemed like the python file was no longer dependent on the JavaScript file. I tried reinstalling mesa and retried but it did not work.
I have made the following changes:
NOTE: I also tried to work on #86 for adding better visualization but I was facing some issues.