diff --git a/examples/boid_flockers/app.py b/examples/boid_flockers/app.py new file mode 100644 index 000000000..29de37490 --- /dev/null +++ b/examples/boid_flockers/app.py @@ -0,0 +1,25 @@ +from mesa.experimental import JupyterViz +from boid_flockers.model import BoidFlockers + + +def boid_draw(agent): + return {"color": "tab:red"} + + +model_params = { + "population": 100, + "width": 100, + "height": 100, + "speed": 5, + "vision": 10, + "separation": 2, +} + +page = JupyterViz( + BoidFlockers, + model_params, + measures=[], + name="BoidFlockers", + agent_portrayal=boid_draw, +) +page # noqa