File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 14
14
15
15
16
16
def agent_portrayal (agent ):
17
- return {"marker" : ">" , "color" : "red" if agent .has_woodchip else "black" , "size" : 10 }
17
+ return {
18
+ "marker" : ">" ,
19
+ "color" : "red" if agent .has_woodchip else "black" ,
20
+ "size" : 10 ,
21
+ }
18
22
19
23
20
24
model_params = {
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ def __init__(
43
43
44
44
# Create agents and randomly distribute them over the grid
45
45
Termite .create_agents (
46
- model = self ,
47
- n = self .num_termites ,
48
- cell = self .random .sample (self .grid .all_cells .cells , k = self .num_termites ),
46
+ model = self ,
47
+ n = self .num_termites ,
48
+ cell = self .random .sample (self .grid .all_cells .cells , k = self .num_termites ),
49
49
)
50
50
51
51
def step (self ):
You can’t perform that action at this time.
0 commit comments