Permalink
Browse files

initialize full rings

  • Loading branch information...
1 parent 2794db1 commit a35f8a743f02866a606c812f771c45fd6a2f3505 @fhinkel fhinkel committed with Nov 15, 2009
Showing with 8 additions and 2 deletions.
  1. +8 −2 test.rb
View
10 test.rb
@@ -65,7 +65,7 @@ def print_hex_gif(rings, gif_file)
def simulate_infection(initialization)
bar = Grid.new(initialization)
- 50.times do
+ 5.times do
bar = bar.getIteratedGrid
end
@@ -76,8 +76,14 @@ def simulate_infection(initialization)
## Initialize cells
initializations = Array.new
+
+random_vector_size = 1
+for i in 1..2 do
+ random_vector_size += 6*i
+end
+
random_initialization= Array.new
-1500.times do
+random_vector_size.times do
#random_initialization.push(rand(3))
random_initialization.push(weighted_rand)
end

0 comments on commit a35f8a7

Please sign in to comment.