Method: Life::CLI::Base#random

Defined in:
lib/life/cli.rb

#randomObject



31
32
33
34
35
36
37
38
# File 'lib/life/cli.rb', line 31

def random
  seed = build_random_seed options[:width], options[:height]
  max_gen = options[:generations]
  world = World.new(options[:width], options[:height], seed)
  display_simulation max_gen, options[:width], options[:height], world
rescue Interrupt
  quit(options[:height])
end