No need to specify the default value.
[cellular-automata.git] / 003 / src / life.erl
index ebb1a2e..562d1a0 100644 (file)
@@ -14,7 +14,7 @@
                ,y                 :: non_neg_integer()
                ,n                 :: non_neg_integer()
                ,bar               :: string()
-               ,board=array:new() :: array()
+               ,board             :: array()
                ,gen_count         :: non_neg_integer()
                ,gen_duration      :: non_neg_integer()
                ,print_time        :: non_neg_integer()
@@ -33,9 +33,9 @@ bang(Args) ->
                   ,n            = X * Y
                   ,bar          = [?CHAR_BAR || _ <- lists:seq(1, X)]
                   ,board        = Board
-                  ,gen_count    = 1
+                  ,gen_count    = 1  % Consider inital state to be generation 1
                   ,gen_duration = Time
-                  ,print_time   = 0
+                  ,print_time   = 0  % There was no print time yet
     },
     life_loop(State).
 
This page took 0.02724 seconds and 4 git commands to generate.