Skip to content

Commit a31f778

Browse files
authored
Update event_rock_paper_scissors.jl: kind to type (#1112)
1 parent dd3658e commit a31f778

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/event_rock_paper_scissors.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# The spatial rock-paper-scissors (RPS) is an ABM with the following rules:
1616

17-
# * Agents can be any of three "kinds": Rock, Paper, or Scissors.
17+
# * Agents can be any of three types: Rock, Paper, or Scissors.
1818
# * Agents live in a 2D periodic grid space allowing only one
1919
# agent per cell.
2020
# * When an agent activates, it can do one of three actions:
@@ -236,7 +236,7 @@ nagents(model)
236236

237237
function terminate(model, t)
238238
threshold = 1000
239-
## Alright, this code snippet loops over all kinds,
239+
## Alright, this code snippet loops over all types,
240240
## and for each it checks if it is less than the threshold.
241241
## if any is, it returns `true`, otherwise `false.`
242242
logic = any(alltypes) do type
@@ -261,7 +261,7 @@ abmtime(model)
261261

262262
# Hence, data collection also works almost identically to [`StandardABM`](@ref).
263263

264-
# Here we will simply collect the number of each agent kind.
264+
# Here we will simply collect the number of each agent type.
265265

266266
model = initialize_rps()
267267

@@ -324,7 +324,7 @@ abmvideo("rps_eventqueue.mp4", model;
324324
# with the [`abmexploration`](@ref) function!
325325

326326
# Let's first define the data we want to visualize, which in this
327-
# case is just the count of each agent kind
327+
# case is just the count of each agent type
328328

329329
model = initialize_rps()
330330
fig, abmobs = abmexploration(model; adata, alabels, when = 0.5, plotkw...)

0 commit comments

Comments
 (0)