Skip to content

Commit

Permalink
reduce size of plotting of Rule 22
Browse files Browse the repository at this point in the history
It slows down browsers significantly.
  • Loading branch information
Datseris committed Dec 9, 2019
1 parent d3997e8 commit 459231b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/rule22_1D_CA.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # One-dimensional cellular automata
# # One-dimensional cellular automata
# Agents.jl provides a module (CA1D) to create and plot 1D cellular automata.

using Agents
Expand All @@ -12,14 +12,14 @@ rules = Dict("111"=>"0", "110"=>"0", "101"=>"0", "100"=>"1", "011"=>"0",
"010"=>"1", "001"=>"1", "000"=>"0")

# ## 2. Build the model
# All the cells are by default initially "off"
model = CA1D.build_model(rules=rules, ncols=101)
# All the cells are by default initially "off"
model = CA1D.build_model(rules=rules, ncols=21)

# This turns on the middle cell
model.agents[51].status="1"
model.agents[11].status="1"

# ## 3. Run the model and collect data.
runs = 100
runs = 20
data = CA1D.ca_run(model, runs);

# ## 4. Visualize the data
Expand Down

2 comments on commit 459231b

@Datseris
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/6440

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v2.0.4 -m "<description of version>" 459231b012fc4b9485154c1eb8393a79396e6778
git push origin v2.0.4

Please sign in to comment.