Skip to content

Commit

Permalink
Update rule_string.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thearn committed Mar 25, 2014
1 parent 571ddb0 commit 52e6414
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rule_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
# A = A.round()

# maze
# rule_string = 'B3/S12345'
# A = 0.63*np.random.random(m*n).reshape((m, n))
# A = A.round()
rule_string = 'B3/S12345'
A = 0.63*np.random.random(m*n).reshape((m, n))
A = A.round()

plt.figure()
img_plot = plt.imshow(A, interpolation="nearest", cmap = plt.cm.gray)
Expand All @@ -57,4 +57,4 @@
A = automata(A, rule_string)
img_plot.set_data(A)
plt.draw()
time.sleep(0.01)
time.sleep(0.01)

0 comments on commit 52e6414

Please sign in to comment.