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 2ece0cf commit 541b004Copy full SHA for 541b004
examples/conways_game_of_life_fast/app.py
@@ -0,0 +1,29 @@
1
+from mesa.visualization import SolaraViz
2
+from model import GameOfLifeModel
3
+
4
+model_params = {
5
+ "width": {
6
+ "type": "SliderInt",
7
+ "value": 10,
8
+ "label": "Width",
9
+ "min": 5,
10
+ "max": 25,
11
+ "step": 1,
12
+ },
13
+ "height": {
14
15
16
+ "label": "Height",
17
18
19
20
21
+}
22
23
+page = SolaraViz(
24
+ GameOfLifeModel,
25
+ model_params,
26
+ space_drawer=None,
27
+ name="Game of Life Model",
28
+)
29
+page # noqa
0 commit comments