We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c9a3c commit c66a6a1Copy full SHA for c66a6a1
examples/boid_flockers/app.py
@@ -0,0 +1,25 @@
1
+from boid_flockers.model import BoidFlockers
2
+from mesa.experimental import JupyterViz
3
+
4
5
+def boid_draw(agent):
6
+ return {"color": "tab:red"}
7
8
9
+model_params = {
10
+ "population": 100,
11
+ "width": 100,
12
+ "height": 100,
13
+ "speed": 5,
14
+ "vision": 10,
15
+ "separation": 2,
16
+}
17
18
+page = JupyterViz(
19
+ BoidFlockers,
20
+ model_params,
21
+ measures=[],
22
+ name="BoidFlockers",
23
+ agent_portrayal=boid_draw,
24
+)
25
+page # noqa
0 commit comments