Class: Lifelike::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/lifelike/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(initial_world_string, rule_string:, generations:) ⇒ Runner

Returns a new instance of Runner.



3
4
5
6
7
# File 'lib/lifelike/runner.rb', line 3

def initialize(initial_world_string, rule_string:, generations:)
  @initial_world_string = initial_world_string
  @rule_string = rule_string
  @generations = generations
end

Instance Method Details

#runObject



9
10
11
# File 'lib/lifelike/runner.rb', line 9

def run
  final_world_string
end